// tslint:disable
import { async } from "@angular/core/testing";
import { Component, OnInit, ViewChild, ElementRef, ViewContainerRef, ComponentFactoryResolver } from "@angular/core";
import { ActivatedRoute, Router } from "@angular/router";

import { SplashScreen } from "@ionic-native/splash-screen/ngx";

import { ModalController, AlertController, IonContent, Platform } from "@ionic/angular";

import { ActionSheetService, Modal, zh_CN } from "ng-zorro-antd-mobile";

import { EventService } from "src/app/shared/service/event.service";

import { ChooseCityComponent } from "../coms/choose-city/choose-city.component";
import { RankingModalComponent } from "../coms/ranking-modal/ranking-modal.component";
import { SharePageComponent } from "../coms/share-page/share-page.component";
import { ComItem } from "../route/entry/com-item";
import { AppGlobalService } from "../shared/service/app-global.service";
import { HttpService } from "../shared/service/http.service";
import { TabsService } from "./../shared/service/tabs.service";
import { MessageService } from "../shared/service/message.service";
import { PageModalService } from "../shared/service/page-modal-service";
import { MapBaiduService } from "../shared/service/map.baiduapi";
import { AppVersion } from "@ionic-native/app-version/ngx";
import { StoreConsultantComponent } from "../coms/store-consultant/store-consultant.component";

declare var showLoading;
declare let $: any;

// declare var DragDOM;
@Component({
  selector: "app-tab1",
  templateUrl: "../route/entry/entry.page.html",
  styleUrls: ["../route/entry/entry.page.scss"],
})
export class Tab1Page implements OnInit {
  @ViewChild("segment", { read: ElementRef }) private segment: ElementRef;
  @ViewChild("custSegment", { read: ElementRef })
  private custSegment: ElementRef;
  refreshAchieveInfoInterval: any;
  private refreshDataTime = 0;
  diffTime = 1; // 默认3分钟 180
  currentRootTabId = new Date().getTime();
  @ViewChild('viewContainer', { read: ViewContainerRef }) viewContainerRef: ViewContainerRef;
  constructor(
    private http: HttpService,
    private route: ActivatedRoute,
    public router: Router,
    public appGlobalService: AppGlobalService,
    public pageModalService: PageModalService,
    private modalController: ModalController,
    private tabsService: TabsService,
    private eventService: EventService,
    public alertController: AlertController,
    private splashScreen: SplashScreen,
    private mapBaiduService: MapBaiduService,
    private platform: Platform,
    private appVersion: AppVersion,
    private resolver: ComponentFactoryResolver
  ) {
    window['pageModalService'] = pageModalService;
    let that = this;
    // 有customerTab时切换
    this.eventService.eventEmit.on("customTabRefresh", (obj) => {
      const reqTag = localStorage.getItem("customTabRefreshTag");
      if (reqTag !== undefined) {

        this.selectedCustomSegment = Number.parseInt(JSON.parse(reqTag));
        localStorage.removeItem("customTabRefreshTag");
      }
    });

    this.eventService.eventEmit.on("topTabChangeByIndex", (tabIndex) => {
      if (this.tagData && this.tagData.data) {
        this.onTabsChange({ index: tabIndex }, this.tagData.data);
      }

    });

    // 从当前位向指定位置滑动
    this.eventService.eventEmit.on("tab1ScrollToBottom", (obj) => {
      const reqTag = localStorage.getItem("tab1ScrollToBottomTag");
      if (reqTag !== undefined) {
        localStorage.removeItem("tab1ScrollToBottomTag");

        this.content.scrollByPoint(0, parseInt(reqTag), 50);
        // this.content.scrollToBottom(0);
      }
    });

    this.eventService.eventEmit.on("tab1ScrollToTop", (obj) => {
      const reqTag = localStorage.getItem("tab1ScrollToTopTag");
      if (reqTag !== undefined) {
        localStorage.removeItem("tab1ScrollToTopTag");

        // this.content.scrollToTop(100);
        this.content.scrollToTop(0);
        // this.content.scrollByPoint(0, parseInt(reqTag), 50);
        // this.content.scrollToBottom(0);
      }
    });
    // tab1ScrollToTop2 文字替换为首页并滚动
    this.eventService.eventEmit.on("tab1ScrollToTop2", (obj) => {
      const reqTag = localStorage.getItem("tab1ScrollToTopTag");
      if (reqTag !== undefined) {
        localStorage.removeItem("tab1ScrollToTopTag");
        if (obj === true) {
          this.content.scrollToTop(200);
        }
        setTimeout(() => {
          this.appGlobalService.homePageToTop = false;
        }, 200);
        const dom = document.getElementById("myTabBar").firstElementChild;
        if (dom) {
          const imgDom = dom.firstElementChild as HTMLElement;
          const textDom = dom.lastElementChild as HTMLElement;
          if (obj === true) {
            imgDom['src'] = "assets/icon/lj_tabbar_icon_home_pre.gif";
          }
          textDom['textContent'] = '首页';
        }
      }
    });
    // tab1ScrollToTop3 文字替换为回顶部
    this.eventService.eventEmit.on("tab1ScrollToTop3", (obj) => {
      const reqTag = localStorage.getItem("tab1ScrollToTopTag");
      if (reqTag !== undefined) {
        clearTimeout(this.timer2);
        clearTimeout(this.timer3);
        localStorage.removeItem("tab1ScrollToTopTag");
        const dom = document.getElementById("myTabBar").firstElementChild;
        if (dom) {
          this.appGlobalService.homePageToTop = true;
          const imgDom = dom.firstElementChild as HTMLElement;
          const textDom = dom.lastElementChild as HTMLElement;
          imgDom['src'] = 'assets/icon/tabbar_icon_zhiding_prs.gif';
          textDom['textContent'] = '回顶部';
        }
      }
    });
    // 定位成功后刷新首页数据
    this.eventService.eventEmit.on("getLocationDone", (obj) => {
      console.log("eventEmit.on getLocationDone");
      if (this.appGlobalService.clientType !== "js") {
        setTimeout(() => {
          let askForPage = false;
          if (this.viewParams.params.code !== JSON.parse(localStorage.getItem("position")).code) {
            console.log("params.code !==position.code...", new Date());
            askForPage = true;
          } else {
            // 2.0 与产品确认如果没有选择小区则可弹窗
            if (localStorage.getItem('alreadySelectArea') === null) {
              console.log("customer not select area", new Date());
              askForPage = true;
            }
          }
          if (askForPage) {
            this.viewParams.sessionId = localStorage.getItem("sessionId");
            this.viewParams.params.code = JSON.parse(
              localStorage.getItem("position")
            ).code;
            // 定位成功后要更新positionInfo // 修复bug  bug-view-3882.html
            this.positionInfo = JSON.parse(localStorage.getItem("position"));
            console.log("set positionInfo...", new Date());
            this.netWork(this.appGlobalService.isPreview ? false : true); // 是否发起重试
          }
        }, 100);
      }

    });

    if (this.eventService.eventEmit.listenerCount('appNav') > 0) {
      this.eventService.eventEmit.removeListener('appNav');
    }
    this.eventService.eventEmit.on("appNav", (obj) => {
      this.isFirst = true;
      console.log("app Tabs done");

      if (obj === "1") {
        this.getViewData(true);
        this.checkAppUpdate();
      }



    });
    if (JSON.parse(localStorage.getItem("appNav"))) {
      console.log("has app tabs");
      this.getViewData();
      // this.checkAppUpdate();
    }


    // 铺小旺新增刷新任务
    if (this.appGlobalService.clientType === "pxw") {
      this.eventService.eventEmit.on("startRefreshTimer", (obj) => {
        const reqTag = localStorage.getItem("startRefreshTimerTag");
        if (reqTag !== undefined) {
          localStorage.removeItem("startRefreshTimerTag");
          this.startRefreshTimer();
        }
      });

      this.eventService.eventEmit.on("clearAchieveInfoTimer", (obj) => {
        const reqTag = localStorage.getItem("clearAchieveInfoTimerTag");
        if (reqTag !== undefined) {
          localStorage.removeItem("clearAchieveInfoTimerTag");
          this.clearAchieveInfoTimer();
        }
      });
    }

    // 清除listTagRefreshTime
    this.eventService.eventEmit.on("clearlistTagRefreshTime", (obj) => {
      if (this.currentDataArray) {
        this.currentDataArray.forEach(element => {
          if (element && element['listTagRefreshTime']) {
            element['listTagRefreshTime'] = undefined;
          }
        });
      }
    });


    // 刷新右上角消息数量
    this.eventService.eventEmit.on("refreshMsgCount", (readObj) => {
      if (readObj !== undefined) {
        if (this.titleBar && this.titleBar.cart) {
          if (readObj.type && readObj.type === 'add') {
            this.appGlobalService.numberOfRedDotMessage = 1;
          } else if (readObj.type && readObj.type === 'sub') {
            this.appGlobalService.numberOfRedDotMessage = -1;
          } else {
            this.appGlobalService.numberOfRedDotMessage = 0;
          }
        }
      }
    });

    // 2.1.0 新增更新searchPageId
    this.eventService.eventEmit.on("nav1ReplaceSearchPageId", (obj) => {
      const reqTag = localStorage.getItem('nav1ReplaceSearchPageIdTag');
      if (reqTag !== undefined) {
        localStorage.removeItem('nav1ReplaceSearchPageIdTag');
        if (this.titleBar && this.titleBar.searchInput && this.titleBar.searchInput.link) {
          console.log('nav1ReplaceSearchPageIdTag', obj);
          this.titleBar.searchInput.link.target = obj.target;
          if (obj.searchPageType !== undefined && obj.searchPageType !== 'default') {
            this.titleBar.searchInput['oldSearchType'] = this.titleBar.searchInput.searchType;
            this.titleBar.searchButton['oldSearchType'] = this.titleBar.searchButton.searchType;
            this.titleBar.searchInput.searchType = '6';
            if (this.titleBar.searchButton) {
              this.titleBar.searchButton.searchType = '6';
            }
          } else {
            if (this.titleBar.searchInput['oldSearchType']) {
              this.titleBar.searchInput.searchType = this.titleBar.searchInput['oldSearchType'];
            } else {
              this.titleBar.searchInput.searchType = '1';
            }
            if (this.titleBar.searchButton['oldSearchType']) {
              this.titleBar.searchButton.searchType = this.titleBar.searchButton['oldSearchType'];
            } else {
              this.titleBar.searchButton.searchType = '1';
            }
          }
          // console.log('titleBar', this.titleBar);
        }
      }
    });
  }
  canRequest = true;
  isLoading = false;
  headerComs: ComItem[];
  menusBar: any;
  coms: ComItem[];
  subComs: ComItem[];
  footerComs: ComItem[];
  sessionId: string;
  params: any = "";
  // 标签头数据
  titleBar: any;
  isHeader = true;
  isStickyDiv = false; // 2.0 新增为false
  isHearderDivInConent = false; // 2.0 新增为false
  isSearchBottomDiv = false; // 2.0 新增为false
  isGrayBg = true; // 默认背景为灰色
  bgCssStyle = '';
  isPageDisabled = false;
  showRefresher = false;
  showLoading = false;
  refreshDelayTime = 0;

  backgroundImg: string; // 头部背景图片
  showWaterImg = false;
  showDivTips = true; // 2.0 
  // 位置对象
  positionInfo: any = {};
  // 小区位置信息
  areaPositionInfo: any = {};
  showTopTab = false; // 是否显示顶部tab
  showSubTab = false; // 是否显示Subtab
  showEmptyMessage = false; // 是否显示暂无消息
  showCustomTopTab = false; // 是否显示自定义topTab
  hasCustomTopTab = false;
  subTagData: any; // 顶部tab data
  switchBlockTag: any; // 蜂喔app新增首页tag样式
  custTabTagData: any;
  subAWidth: string;
  tagData: any;
  aWidth: string;
  viewParams: any = {
    sessionId: localStorage.getItem("sessionId"),
    params: { code: JSON.parse(localStorage.getItem("position")).code },
  };
  isFirst = true;
  openBackdrop: boolean;
  showRefresh = false; // 是否显示刷新
  netState: any; // 网络状态
  isScrolling = false;
  private timer: any;
  timer2: any;
  timer3: any;
  // 分享页面数据
  shareData = {
    icon: "share.png",
    layout: "right",
    submit: {
      content: {},
      id: "string",
    },
  };
  selectedSegment = 0;
  selectedCustomSegment = 0;
  appTypeCustom: any;
  tabBarUnderlineStyle: any;
  tabBarTextStyle: any;
  currentDataArray = [];
  tabPaneIndex = 0;
  tabPageShowCount = 4;// 默认显示4个
  isSpinning = false;
  paymentOrder: any;
  showScrollToTopBtn = false;// 是否显示滑动到顶部按钮
  isAddCommonNestedTag = true;
  // 蜂喔商户1.6.15 新增上滑消息
  num: any = 0;
  interval: any;
  @ViewChild("superCotainer") scrollContent: ElementRef;
  @ViewChild(IonContent) content: IonContent;
  serviceLink: any;
  subTagDataId = 'subTagDataId';
  switchNewCssBtnId = 'switchNewCssBtnId';
  ngOnInit() {
    // 2023.12.02 防止tabs为空
    window['tabs'] = this.tabsService;
    this.subTagDataId += new Date().getTime();
    this.switchNewCssBtnId += new Date().getTime();
    console.log("tab1");
    const bodyStyles = window.getComputedStyle(document.body);
    this.appTypeCustom = bodyStyles.getPropertyValue('--appTypeCustom').trim().replace('"', '').replace('"', '');
    this.openBackdrop = this.appGlobalService.openBackdrop;
    // if (this.appTypeCustom === 'LJ') {
    //   document.getElementById('fengwoCustomerChat1').style.display = 'flex';
    // }
    if (this.eventService.eventEmit.listenerCount('tab1') > 0) {
      this.eventService.eventEmit.removeListener('tab1');
    }
    this.eventService.eventEmit.on("tab1", (obj) => {
      console.log("eventEmit.on tab1");
      this.getViewData(obj);
    });

    // 2.0 安卓用户同意则调用获取定位信息弹窗 蜂喔用户和蜂喔商户都要配置该弹窗
    this.eventService.eventEmit.on("refreshLocationStoreForAndroid", (obj) => {
      // setTimeout(() => {
      //   if (this.appGlobalService.clientType === "js") {
      //     return; // 2024.01.24 蜂喔商户没有用到该功能
      //   } else {
      //     if (this.appGlobalService.privateRightPageLink !== null
      //       && (this.appGlobalService.clientType === "lj")
      //     ) {
      //       this.pageModalService.openPage(this.appGlobalService.privateRightPageLink.link);
      //     }
      //     this.mapBaiduService.onlyRefreshCurrentPositionAndCallBack(() => {
      //       console.log(new Date().toLocaleString() + '.' + new Date().getMilliseconds() + '  refreshLocationStoreForAndroid... 1	   ', '  	   ');
      //       const modal = this.modalController.getTop();
      //       if (modal && modal['__zone_symbol__value'] !== undefined) {
      //         this.modalController.dismiss();
      //       }
      //       if (localStorage.getItem('popLink')) {
      //         const popLink = JSON.parse(localStorage.getItem('popLink'));
      //         this.eventService.emit('openPage', JSON.stringify(popLink));
      //       }
      //     });
      //   }

      // }, 800);
      this.pageModalService.initJiguangPushAndAddListener();

    });

    if (localStorage.getItem('client') === 'APP' && ((localStorage.getItem('platform') === 'android' && localStorage.getItem('privacyStatement') && localStorage.getItem('privacyStatement') === 'true'))) {

      setTimeout(() => {
        this.pageModalService.initJiguangPushAndAddListener();
      }, 3000);

      // 只有app android 才弹窗
      if (localStorage.getItem('client') === 'APP' && (localStorage.getItem('platform') === 'android')) {
        // 蜂喔商户和铺小旺跳转到登录页面才展示
        if (this.appGlobalService.clientType === 'ppw' || this.appGlobalService.clientType === 'lj') {
          // TODO 2023.12.26 
        }
      }
    }
    // 2024.01.14 隐私政策bug修复 触发定位
    this.eventService.eventEmit.emit("refreshLocationStoreForAndroid", '1');



  }
  ngOnDestroy() {
    clearInterval(this.interval);
  }

  // View实例化完成
  ngAfterViewInit(): void {
    this.useLocalData();


  }

  onMoveHandler(ev) {
    const deltaY = ev.deltaY;
    console.log('上滑隐藏消息提示:' + deltaY);
    if (deltaY < 10 && deltaY > 0) {
      // document.getElementById('messageNotify').style.display = 'none';
    }
    // if (deltaY < -25) {
    //   this.num++;
    //   if (this.num < 2) {
    //     console.log('上滑隐藏消息提示');

    //   }
    // }
  }

  onTabsChange(i, item, currentData?) {
    this.eventService.removeCustomListListeners();
    this.tabPaneIndex = i.index;
    if (this.viewParams.params.opp_id !== undefined) {
      item[i.index].partLink.params.opp_id = this.viewParams.params.opp_id;
    }
    if (this.viewParams.params.opp_id2 !== undefined) {
      item[i.index].partLink.params.opp_id2 = this.viewParams.params.opp_id2;
    }
    if (this.viewParams.params.opp_id3 !== undefined) {
      item[i.index].partLink.params.opp_id3 = this.viewParams.params.opp_id3;
    }
    if (this.viewParams.params.recommendTab !== undefined) {
      item[i.index].partLink.params.recommendTab = this.viewParams.params.recommendTab;
    }
    const mViewId = item[i.index].partLink.target;
    const mParams = item[i.index].partLink.params;
    const nowTime = new Date().getTime() / 1000; // 三分钟内不刷新
    if ((this.currentDataArray[this.tabPaneIndex] && this.currentDataArray[this.tabPaneIndex]['listTagRefreshTime']
      && (nowTime - this.currentDataArray[this.tabPaneIndex]['listTagRefreshTime'] < this.diffTime))) {
      return;
    }
    this.isSpinning = true;

    this.http.post('application/part',
      {
        viewId: mViewId,
        sessionId: localStorage.getItem("sessionId"),
        params: mParams,
        tagOrder: 0
      }, (res: any) => {
        const tmpData = JSON.parse(res.script);
        tmpData.tags['listTagRefreshTime'] = new Date().getTime() / 1000;
        this.tagData.currentData.tags = tmpData.tags;

        // if (localStorage.getItem('viewParamsOppId')) {
        // for (let i = 0; i < tmpData.tags.length; i++) {
        const tempEle = tmpData.tags[0];
        if (tempEle.style === 'appTabTag-smooth-style') {
          this.isAddCommonNestedTag = false;
        } else {
          this.isAddCommonNestedTag = true;
        }
        // }
        //   localStorage.removeItem('viewParamsOppId');
        // }
        this.currentDataArray[this.tabPaneIndex] = tmpData.tags;

        this.isSpinning = false;
      });
  }



  change(obj, indexTab) {
    if (obj !== undefined && obj.partLink !== undefined) {
      this.tagData.currentTab = indexTab;
      if (localStorage.getItem("topTapPart" + indexTab)) {
        const parseData = JSON.parse(
          localStorage.getItem("topTapPart" + indexTab)
        );
        this.tagData.currentData = parseData;
        localStorage.setItem(
          "refreshGrayBgTag",
          "" + this.tagData.currentData.isGrayBg
        );
        this.eventService.eventEmit.emit("refreshGrayBg", "refreshGrayBg");
        setTimeout(() => {
          localStorage.setItem(
            "dataMapTopTabContainer",
            JSON.stringify(this.tagData)
          );
          this.eventService.eventEmit.emit(
            "refreshTopTabContainer",
            "refreshTopTabContainer"
          );
          this.content.scrollToTop(0);
          this.content.scrollToPoint
        }, 200);
      } else {
        this.http.post(
          "application/part",
          {
            viewId: obj.partLink.target,
            sessionId: localStorage.getItem("sessionId"),
            params: obj.partLink.params,
          },
          (res: any) => {
            // #616 修改：点击转让服务和选址服务跳到第一屏的画面
            this.content.scrollToTop(0);
            if (res !== undefined && res != null) {
              setTimeout(() => {
                this.tagData.currentData = JSON.parse(res.script);
                localStorage.setItem(
                  "refreshGrayBgTag",
                  "" + this.tagData.currentData.isGrayBg
                );
                this.eventService.eventEmit.emit(
                  "refreshGrayBg",
                  "refreshGrayBg"
                );
                localStorage.setItem(
                  "dataMapTopTabContainer",
                  JSON.stringify(this.tagData)
                );
                this.eventService.eventEmit.emit(
                  "refreshTopTabContainer",
                  "refreshTopTabContainer"
                );
              }, 50);
            }
          }
        );
      }
    }
  }

  // 启动定时器用于刷新缓存
  startRefreshTimer() {
    // 首页业务、收费、服务数量、过期数量缓存失效时间设置：10分钟；10分钟更新一次。
    // 首页 业绩统计缓存失效时间设置：30分钟，30分钟更新一次
    if (this.refreshAchieveInfoInterval) {
      clearInterval(this.refreshAchieveInfoInterval);
    }
    // 10分钟刷新一次 add by andrew.wen
    this.refreshAchieveInfoInterval = setInterval(() => {
      console.log(new Date().toLocaleString() + '.' + new Date().getMilliseconds() + '  	setInterval(() =>   ', '  	   ');
      this.getViewData(false);
    }, 600000);
  }

  // 清除定时器
  clearAchieveInfoTimer() {
    try {
      clearInterval(this.refreshAchieveInfoInterval);
    } catch (error) {
      console.log("error----->" + JSON.stringify(error));
    }
  }

  getViewData(btn?) {
    this.positionInfo = JSON.parse(localStorage.getItem("position"));
    this.route.queryParams.subscribe((p) => {
      // 2024.12.02 如果是蜂喔商户则需要在登录后的part刷新下position
      if (this.appGlobalService.clientType === 'js') {
        this.positionInfo = JSON.parse(localStorage.getItem('position'));
      }

      if (localStorage.getItem("appNav")) {
        const appNav: any = JSON.parse(localStorage.getItem("appNav"))[0];
        let currentParam: any;
        if (p.paramsStr) {
          if (p.paramsStr.indexOf('%') > -1) {
            let temp: any;
            temp = decodeURIComponent(p.paramsStr);
            if (temp.indexOf('%') > -1) {
              temp = decodeURIComponent(temp);
            }

            currentParam = JSON.parse(temp);

          } else {
            currentParam = JSON.parse(p.paramsStr);
          }

        }


        if (
          appNav.params !== undefined &&
          appNav.params.noUseCache !== undefined
        ) {
          this.viewParams.params.noUseCache = appNav.params.noUseCache;
        }
        // 蜂喔v1.0.0 新增
        if (appNav.params !== undefined && appNav.params.plugin_type_id !== undefined) {
          this.viewParams.params.plugin_type_id = appNav.params.plugin_type_id;
        }
        // 蜂喔v1.9.0 新增  1.9.5 从配置取
        if (appNav.params !== undefined && currentParam && currentParam.indexTab !== undefined) {
          this.viewParams.params.indexTab = currentParam.indexTab;
        } else {
          this.viewParams.params.indexTab = appNav.params.indexTab;
        }
        // 蜂喔v1.9.5 新增
        if (appNav.params !== undefined && currentParam && currentParam.recommendTab !== undefined) {
          this.viewParams.params.recommendTab = currentParam.recommendTab;
        } else {
          // 蜂喔v1.9.3 新增 取缓存
          this.viewParams.params.recommendTab = appNav.params.recommendTab;
          if (localStorage.getItem('smoothIndexRecommendTab')) {
            const smoothIndexRecommendTab = parseInt(localStorage.getItem('smoothIndexRecommendTab'));
            this.viewParams.params.recommendTab = smoothIndexRecommendTab;
          }
        }

        // 蜂喔v1.9.5 新增
        if (appNav.params !== undefined && currentParam && currentParam.opp_id !== undefined) {
          this.viewParams.params.opp_id = currentParam.opp_id;
        } else {
          this.viewParams.params.opp_id = appNav.params.opp_id;
        }

        // 蜂喔v1.9.5 新增
        if (appNav.params !== undefined && currentParam && currentParam.opp_id2 !== undefined) {
          this.viewParams.params.opp_id2 = currentParam.opp_id2;
        } else {
          this.viewParams.params.opp_id2 = appNav.params.opp_id2;
        }

        // 蜂喔v1.9.5 新增
        if (appNav.params !== undefined && currentParam && currentParam.opp_id3 !== undefined) {
          this.viewParams.params.opp_id3 = currentParam.opp_id3;
        } else {
          this.viewParams.params.opp_id3 = appNav.params.opp_id3;
        }


        // }
        this.viewParams.viewId = appNav.target;

        // 蜂喔2.0 新增
        if (appNav.params !== undefined && currentParam && currentParam.viewId !== undefined) {
          this.viewParams.viewId = currentParam.viewId;
        } else {
          this.viewParams.viewId = appNav.target;
        }

        // 蜂喔2.4.0 支持配置经纬度
        if (appNav.params !== undefined && appNav.params.latitude !== undefined) {
          const lat = this.positionInfo.center.lat ? this.positionInfo.center.lat : appNav.params.latitude
          this.viewParams.params.latitude = lat;
        }
        if (appNav.params !== undefined && appNav.params.longitude !== undefined) {
          const lng = this.positionInfo.center.lng ? this.positionInfo.center.lng : appNav.params.longitude
          this.viewParams.params.longitude = lng;
        }
        // 蜂喔2.4.1 支持抖音配置开启开关
        if (appNav.params && appNav.params.enableDouyinShare!==undefined) {
          this.appGlobalService.enableDouyinShare = appNav.params.enableDouyinShare;
        }


        if (btn !== undefined) { // 1.6.34 新增跳转。


          if (btn.link && btn.link.params && btn.link.params.viewId && btn.link.params.viewId.target) {
            this.viewParams.viewId = parseInt(btn.link.params.viewId.target);
            appNav.target = this.viewParams.viewId;
          } else {
            if (btn.link && btn.link.params && btn.link.params.assignParams !== undefined) {
              Object.assign(this.viewParams.params, btn.link.params);
            }
            if (btn.link && btn.link.type && btn.link.type === 'view') {
              this.viewParams.viewId = btn.link.target;
              appNav.target = this.viewParams.viewId;
            } else if (btn.link && btn.link.params && btn.link.params.viewId !== undefined) {
              this.viewParams.viewId = btn.link.params.viewId;
              appNav.target = this.viewParams.viewId;
            }
          }

          let tempAll = JSON.parse(localStorage.getItem("appNav"));
          if (btn.link && tempAll && tempAll[0]) {
            tempAll[0] = appNav;
            localStorage.setItem('appNav', JSON.stringify(tempAll));
          }
        }




        if (appNav['type'] !== undefined && appNav['type'] === 'page') {
          return;
        }
      }
      // 新增带参数处理
      if (p.paramsStr !== undefined) {
        // 2023年8月18日新增参数处理
        if (p.paramsStr && !p.paramsStr.includes('"needRefreshTab1":"false"')) {
          localStorage.setItem("needRefreshTab1", "true");
        } else {
          localStorage.removeItem('needRefreshTab1');
        }

        if (p.paramsStr && p.paramsStr.includes('"tabShare":"')) {
          // this.appGlobalService['hasTabShare']= true;
          localStorage.setItem('hasTabShare', 'true');
        }
      }
      
      // /** 避免重复请求  sessionId 变化的也重新请求 */ 
      if (this.isFirst || !this.coms || !this.sessionId || this.sessionId !== localStorage.getItem('sessionId')) {
        this.sessionId =  localStorage.getItem('sessionId');
        // 第一次请求加loading  'lj'、'js' 都开启缓存 不用判断了
        // if (this.appGlobalService.clientType != 'lj') {
        //   this.http.delayShowLoading(); // 使用了缓存先不显示loading
        // }
        this.canRequest = true;
        localStorage.setItem("tabPath", "home/tab1");
      } else if (!localStorage.getItem("needRefreshTab1")) {
        return;
      }

      // 蜂喔商户部分刷新
      if (btn !== undefined && btn.refreshTabBtn !== undefined) {

        this.getSingleComponentData();
        return;
      }

      // // 如需要刷新 先清空页面  'lj'、'js' 都开启缓存 不用能先清空，不然缓存数据页面出不来
      // if (localStorage.getItem("needRefreshTab1")) {
      //   showLoading();
      //   this.headerComs = [];
      //   this.coms = [];
      //   this.footerComs = [];

      // }
      // 铺铺旺处理点击recommend-message.component刷新信息列表
      // 新增带参数处理
      if (
        (this.appGlobalService.clientType === "ppw" || this.appGlobalService.clientType === "lj") &&
        p.paramsStr !== undefined
      ) {
        const newObj = this.viewParams.params;
        let paramFromTag: any;
        if (p.paramsStr.indexOf('%') > -1) {
          let temp: any;
          temp = decodeURIComponent(p.paramsStr);
          if (temp.indexOf('%') > -1) {
            temp = decodeURIComponent(temp);
          }

          paramFromTag = JSON.parse(temp);

        } else {
          paramFromTag = JSON.parse(p.paramsStr);
        }

        if (newObj.recommendTab !== undefined) {
          paramFromTag.recommendTab = newObj.recommendTab;
        }
        Object.assign(newObj, paramFromTag);
        this.viewParams.params = newObj;
        localStorage.setItem("needRefreshTab1", "true");
      }
      this.netWork();
      this.tabPaneIndex = 0;
      localStorage.removeItem("needRefreshTab1");
    });
  }
  getSingleComponentData() {
    this.viewParams.sessionId = localStorage.getItem("sessionId");
    this.viewParams.params.code = JSON.parse(
      localStorage.getItem("position")
    ).code;
    if (localStorage.getItem("indexTab")) {
      const indexTab = localStorage.getItem("indexTab");
      if (this.viewParams.params && this.viewParams.params.indexTab) {
        this.viewParams.params.indexTab = indexTab;
      } else {
        if (this.appGlobalService['needUseStorageIndexTab'] !== undefined) {
          this.viewParams.params.indexTab = indexTab;
        }
      }
    }
    // 2.2.1 新增
    if (this.appGlobalService['needCheckAndReplaceIndexTab'] !== undefined
      && this.appGlobalService[this.appGlobalService['needCheckAndReplaceIndexTab']]
    ) {
      this.viewParams.params.subTabIndexTab = this.appGlobalService[this.appGlobalService['needCheckAndReplaceIndexTab']];
    }
    this.http.post(
      "application/part/",
      this.viewParams,
      (res) => {
        console.log('viewParas', res);
        this.tabsService.getPageData(res, async (pageData) => {
          if (
            pageData.coms[pageData.coms.length - 1] &&
            pageData.coms[pageData.coms.length - 1].tagData.style === "tag.AppTabTagLogic"
          ) {
            setTimeout(() => {
              // localStorage.setItem('refreshTabBtnTag','1');
              this.eventService.eventEmit.emit('refreshTabBtn', pageData.coms[pageData.coms.length - 1].tagData);
            }, 50);
          }
        });
      });
  }

  netWork(isNeedReTry?) {
    if (!this.canRequest) {
      // 用于重新定位了之后是否需要重试
      if (isNeedReTry) {
        setTimeout(() => {
          this.netWork();
        }, 1000);
      }
      return;
    }
    this.canRequest = false;
    // add by andrew.wen 此处需重新取一次postion 因为页面保存了上一次存的信息
    this.viewParams.sessionId = localStorage.getItem("sessionId");
    if (!localStorage.getItem('tab1PartData') && this.appGlobalService.clientType === 'js') {
      // 商户端一次tab1
      delete this.viewParams.cancelLoading;
    } else {
      this.viewParams.cancelLoading = true; // 使用缓存数据不显示loading
      console.log('tab1 使用缓存数据不显示loading!!!');
    }

    this.viewParams.params.code = JSON.parse(
      localStorage.getItem("position")
    ).code;



    if (localStorage.getItem("indexTab")) {
      const indexTab = localStorage.getItem("indexTab");
      if (this.viewParams.params && this.viewParams.params.indexTab) {
        this.viewParams.params.indexTab = indexTab;
      } else {
        if (this.appGlobalService['needUseStorageIndexTab'] !== undefined) {
          this.viewParams.params.indexTab = indexTab;
        }
      }
    }


    // 2.2.1 新增
    if (this.appGlobalService['needCheckAndReplaceIndexTab'] !== undefined
      && this.appGlobalService[this.appGlobalService['needCheckAndReplaceIndexTab']]
    ) {
      this.viewParams.params.subTabIndexTab = this.appGlobalService[this.appGlobalService['needCheckAndReplaceIndexTab']];
    }


    // 2.3.5 新增 收货地址有值
    if (this.appGlobalService.locationAddressLabel
      && this.appGlobalService.locationAddressLabel !== '') {

      if (this.appGlobalService.addressEventResultValue
        &&
        this.appGlobalService.addressEventResultValue !== ''
      ) {
        this.viewParams.params.longitude = this.appGlobalService.getAddressLng;
        this.viewParams.params.latitude = this.appGlobalService.getAddressLat;
      }
    }

    if (localStorage.getItem('ShareH5')) {

      this.viewParams.viewId = JSON.parse(localStorage.getItem('ShareH5')).viewId;
      Object.assign(this.viewParams.params, JSON.parse(localStorage.getItem('ShareH5')));
    }
    this.http.post(
      "application/part/",
      this.viewParams,
      (res) => {


        this.processPartData(res);
      },
      (err) => {
        // setTimeout(() => {
        //   // this.splashScreen.hide();
        //   console.log(
        //     "====================================this.splashScreen.hide() 1"
        //   );
        // }, 0);
        setTimeout(() => {
          this.canRequest = true;
        }, 1000);

        // 第一次请求失败
        this.http.hideLoading();
        if (!this.coms && !this.subComs) {
          if (localStorage.getItem("netState") === "No network connection") {
            this.netState = localStorage.getItem("netState");
          } else {
            this.netState = "";
          }
          this.showRefresh = true;
        }
      }
    );
  }

  processPartData(res, isCache?) {
    try {
      setTimeout(() => {
        this.canRequest = true;
      }, 1000);

      localStorage.setItem("tab1", "true");
      // this.eventService.emit('tab1', 'true');// 暂时注释 不知道有什么作用这里
      // 请求数据成功
      this.http.hideLoading();
      this.showRefresh = false;
      if (res) {
        const parseScript = JSON.parse(res.script);
        //2024.11.20
        if (res.script.includes('{"settingAGSValue":"true","settingAGSName":"refreshHomePageEnabled",')) {
          this.appGlobalService.refreshHomePageEnabled = true;
          // 2024.11.20 判断是否支持下拉刷新tab1 
          const debouncedHandler = this.appGlobalService.debounce((data: any) => {
            this.refreshPage();
          }, 300);
          this.eventService.eventEmit.on('pulltoRefreshHomePage', debouncedHandler);
        } else {
          this.appGlobalService.refreshHomePageEnabled = false;
          this.eventService.removeCustomListListenersByName('pulltoRefreshHomePage');
        }



        if (res.script.includes('"style":"payment-order",')) {
          if (parseScript.tags) {
            for (let index = 0; index < parseScript.tags.length; index++) {
              const element = parseScript.tags[index];
              if (element && element.style === 'payment-order') {
                this.eventService.eventEmit.emit("remindPaymentOrder", element.data);
              }
            }
          }
        } else {
          this.eventService.eventEmit.emit("remindPaymentOrder", null);
        }


        if (res.script.includes('"style":"tag.AppSimpleDetailTagLogic",') && res.script.includes('"cssType":"60-expressOrderBtn"')) {

          let pageData = JSON.parse(res.script);
          const len = pageData.views[0].tags.length - 1;
          for (let index = 0; index < len; index++) {
            const element = pageData.views[0].tags[index];
            if (element.style === 'tag.AppSimpleDetailTagLogic' && element.data.cssType === '60-expressOrderBtn') {
              this.viewContainerRef.clear();
              const factory = this.resolver.resolveComponentFactory(StoreConsultantComponent);
              const componentRef = this.viewContainerRef.createComponent(factory);
              element.data.cssType += 'New';// 2024.06.20 修复出现反复创建的问题
              (componentRef.instance).tagData = element;
              pageData.views[0].tags[index] = null;
              break;
            }
          }
          res.script = JSON.stringify(pageData);



        }
        // 铺小旺 测试数据
        // if (this.appGlobalService.clientType === 'pxw') {
        //   try {
        //     parseScript.tags.unshift(this.getDemoTagAchiement());
        //     res.script = JSON.stringify(parseScript);
        //   } catch (error) {
        //     console.log('error----->' + JSON.stringify(error));
        //   }
        // }

        // 铺铺旺 新增测试标签 测试环境使用。测试数据用
        // if (this.appGlobalService.clientType === 'ppw') {
        // try {
        //   parseScript.tags.unshift(this.getDemoTagStatisticsCustomerIntention());
        //   res.script = JSON.stringify(parseScript);
        // } catch (error) {
        //   console.log('error----->' + JSON.stringify(error));
        // }
        // try {
        //   parseScript.tags.unshift(this.getDemoTagInquiryPageStyle());
        //   res.script = JSON.stringify(parseScript);
        // } catch (error) {
        //   console.log('error----->' + JSON.stringify(error));
        // }
        // }

        // TODO 后端改失效时间
        // 2023.9.11 loginStatus 商户端 自动登录，有登录状态存在localStorage则自动登录，自动给他一键登录
        // 2023.9.11 loginStatus 用户端 直接发送登录，自动给他一键登录 登录方式：密码登录，极光登录，微信授权登录，验证码登录
        // 2023.9.11 修改，支付密码，提现密码，登录密码等敏感信息就跳转到登录
        // 新增需求 后台如果返回501 则跳转到登录页面
        if (parseScript.code === 501) {
          this.isFirst = true;
          const params = {
            pageId: parseScript.link.target,
            params: {},
            sessionId: localStorage.getItem("sessionId"),
          };
          this.appGlobalService.goToForward(params);
        } else if (parseScript.code === 502) {
          this.getViewData();
        } else {
          this.tabsService.getPageData(res, async (pageData) => {
            if (isCache) {
              // 如是使用缓存不进行二次请求，等待请求新的模板数据再二次请求
              for (let index = 0; index < pageData.coms.length; index++) {
                const element = pageData.coms[index].tagData;
                if (element.style === 'tag.AppTabTagLogic' && element.currentData && element.currentData.isShell) {
                  element.currentData.isShell = false;
                  break;
                }

              }
            }
            this.coms = pageData.coms;
            this.footerComs = pageData.footerComs;
            // 2.2.0 2023-05-10
            this.headerComs = pageData.headerComs;
            if (
              this.coms[0] &&
              this.coms[0].tagData.style === "tag.AppTabTagLogic" &&
              this.coms[0].tagData.name === "homeAppTabTag"
            ) {
              this.showTopTab = true;
              this.tagData = this.coms[0].tagData;
              this.aWidth = 100 / this.tagData.data.length + "%";
              this.currentDataArray = new Array(this.tagData.data.length);
              this.tagData.currentData.tags['listTagRefreshTime'] = new Date().getTime() / 1000;
              this.currentDataArray[this.tabPaneIndex] = this.tagData.currentData.tags;
              if (document.documentElement.clientWidth >= 375) {
                this.tabPageShowCount = this.tagData.data.length > 4 ? 4 : this.tagData.data.length;
              } else {
                this.tabPageShowCount = this.tagData.data.length > 3 ? 3 : this.tagData.data.length;
              }
              this.tabBarUnderlineStyle = {
                height: '3.25rem', width: '2.88rem',
                border: 'unset',
                ['margin-left']: 'calc(( 100vw / ' + this.tabPageShowCount + '  - 2.88rem) * 0.5)',
                ['background-image']: 'url(assets/fw/icon_title-01@3x.png)',
                ['background-size']: '100%',
                ['background-repeat']: 'no-repeat',
                ['background-position']: 'center bottom',
                ['z-index']: 1
              };
              this.tabBarTextStyle = {
                ['z-index']: 2,
                ['font-size']: '1rem',
                color: '#575a61'
              };
            }

            this.titleBar = pageData.titleBar;

            if (!this.platform.is('cordova')) {

              if (this.titleBar && this.titleBar.cart && this.titleBar.cart.link && this.titleBar.cart.link.params && this.titleBar.cart.link.params.cslLabel) {
                console.log('clsLabel:------>', this.titleBar.cart.link.params.cslLabel);
                const h5LocationInfo = JSON.parse(localStorage.getItem('mapPosition'));
                if (h5LocationInfo && h5LocationInfo.h5 === undefined) {
                  // h5LocationInfo.district = this.titleBar.cart.link.params.cslLabel;
                  if (this.titleBar.cart.link.params.cslCityCode) {
                    h5LocationInfo.code = this.titleBar.cart.link.params.cslCityCode;
                  }

                  if (this.titleBar.cart.link.params.cslCityName) {
                    h5LocationInfo.name = this.titleBar.cart.link.params.cslCityName;
                  }

                  if (this.titleBar.cart.link.params.cslLocation) {
                    h5LocationInfo.center.lat = this.titleBar.cart.link.params.cslLocation.split(',')[0];
                    h5LocationInfo.center.lng = this.titleBar.cart.link.params.cslLocation.split(',')[1];
                  }

                  if (this.titleBar.cart.link.params.cslCityName) {
                    h5LocationInfo.address = this.titleBar.cart.link.params.cslCityName + this.titleBar.cart.link.params.cslLabel;
                  }

                  h5LocationInfo['h5'] = 'true';
                  // localStorage.setItem('position', JSON.stringify(h5LocationInfo));
                  localStorage.setItem('mapPosition', JSON.stringify(h5LocationInfo));
                  // localStorage.setItem('currentCityPosition', JSON.stringify(h5LocationInfo));
                } else {
                  //  this.titleBar.cart.link.params.cslLabel = h5LocationInfo.district;
                }

              }
            }

            // 2.0 与产品确认如果没有选择小区则弹窗让用户选小区
            if (localStorage.getItem('alreadySelectArea') === null) {
              if (localStorage.getItem('client') === 'APP') {
                if (this.platform.is('android')) {
                  // 2.0 审核隐私权限弹窗 
                  if (this.titleBar.hasPop && this.titleBar.hasPop === "true" && this.titleBar.popLink && this.titleBar.popLink.link && !isCache) {
                    console.log(" android popLink... hasPop true", new Date());
                    localStorage.setItem('popLink', JSON.stringify(this.titleBar.popLink.link));
                    this.mapBaiduService.onlyRefreshCurrentPositionAndCallBack(async () => {
                      console.log(new Date().toLocaleString() + '.' + new Date().getMilliseconds() + '  refreshLocationStoreForAndroid... 2	   ', '  	   ');
                      if (localStorage.getItem('deviceUUID')) {
                        const model = await this.modalController.getTop(); // 防止安卓端误弹
                        if (model === undefined) {
                          const popLink = JSON.parse(localStorage.getItem('popLink'));
                          this.eventService.emit('openPage', JSON.stringify(popLink));
                        }
                      }
                    });
                  } else if (this.titleBar.hasPop && this.titleBar.hasPop === "false" && this.titleBar.popLink && this.titleBar.popLink.link) {
                    console.log(" android popLink... hasPop false", new Date());
                    localStorage.removeItem('popLink');
                    if (this.appGlobalService.clientType !== 'js') {
                      this.mapBaiduService.onlyRefreshCurrentPositionAndCallBack(() => {
                        console.log(new Date().toLocaleString() + '.' + new Date().getMilliseconds() + '  refreshLocationStoreForAndroid... 3	   ', '  	   ');
                      });
                    }
                  }
                } else {
                  if (this.titleBar.hasPop && this.titleBar.hasPop === "true" && this.titleBar.popLink && this.titleBar.popLink.link && !isCache) {
                    this.mapBaiduService.onlyRefreshCurrentPositionAndCallBack(() => {
                      console.log("popLink...", new Date());
                      this.pageModalService.openPage(this.titleBar.popLink.link)

                    });

                  }

                }
              }
            }


            console.log('this.currentRootTabId', this.currentRootTabId);
            if (document.getElementById('superToolbar' + this.currentRootTabId)) {
              setTimeout(() => {
                try {
                  document.getElementById('superToolbar' + this.currentRootTabId).setAttribute("style", this.titleBar.cssStyle);
                } catch (error) {

                }
              }, 5);
            }
            // add by andrew.wen for 3.6.0 数据地图新增选择切换城市
            if (this.titleBar && this.titleBar.position && this.titleBar.position.link) {
              localStorage.setItem(
                "tabTitleBar",
                JSON.stringify(this.titleBar.position.link)
              );
            }
            this.getCurrentToggleData();
            this.isGrayBg = pageData.isGrayBg;
            this.bgCssStyle = pageData.bgCssStyle;
            this.isPageDisabled = pageData.disabled;
            (this.showRefresher = pageData.showRefresher),
              (this.showLoading = pageData.showLoading);
            // 2023.11.14
            if (pageData.refreshDelayTime) {
              this.refreshDelayTime = parseInt(pageData.refreshDelayTime);
              console.log(new Date().toLocaleString() + '.' + new Date().getMilliseconds() + '  refreshDelayTime=	   ', this.refreshDelayTime);
            }
            this.backgroundImg = pageData.backgroundImg;
            this.showWaterImg = pageData.showWaterImg;
            this.isFirst = false;
            // 如果是铺小旺 需要改成 工作城市 (this.titleBar.position.code 是铺小旺登录后返回的)
            if (this.appGlobalService.clientType === "pxw") { //  蜂喔商户2.0变动 
              this.positionInfo.code = this.titleBar.position.code;
              this.positionInfo.name = this.titleBar.position.name;
            } else {
              // add by andrew.wen for ppw 3.6.0 如果首页包含配置了可滑动的tab则设置
              const lastComs = this.coms[this.coms.length - 1];
              if (lastComs && lastComs.tagData.style === "tag.AppTabTagLogic") {
                if (
                  lastComs.tagData.scroll !== undefined &&
                  lastComs.tagData.scroll === true
                ) {
                  this.custTabTagData = lastComs.tagData;
                  this.hasCustomTopTab = true;
                }
              }
            }

            this.appGlobalService.refreshViewTree(this.content);
            if (!isCache) {
              // 屏蔽缓存的弹窗
              localStorage.setItem('tab1PartData', JSON.stringify(res).replace('26-customDialog', '28-report-page'));
            }
          });
        }

      } else {
        // 请求数据失败
        this.appGlobalService.showToast(res.message, 2000, "middle");
      }
    } catch (error) {
      console.log("error----->" + JSON.stringify(error));
    }




  }

  buttonClick(obj) {
    if (obj.type === "page") {
      const params = {
        pageId: obj.target,
        params: {},
        sessionId: localStorage.getItem("sessionId"),
      };
      if (obj.param) {
        params.params = { code: this.positionInfo.code };
      }
      this.appGlobalService.goToForward(params);
    } else if (obj.type === "modal") {
      this.showCityModel(obj.target);
    }

  }

  async showCityModel(target) {
    const that = this;
    const modal = await this.modalController.create({
      component: ChooseCityComponent,
      componentProps: { value: target, type: 1, modalTitle: "选择城市" }, //    首页是1 默认不传或者0
    });
    modal.onDidDismiss().then(() => {
      that.positionInfo = JSON.parse(localStorage.getItem("position"));
      that.sessionId = localStorage.getItem("sessionId");
      that.viewParams.params.code = that.positionInfo.code;
      that.viewParams.sessionId = that.sessionId;
      // 切换完城市后需要刷新tab1-3
      localStorage.setItem("needRefreshTab1", "true");
      localStorage.setItem("needRefreshTab2", "true");
      localStorage.setItem("needRefreshTab3", "true");
      localStorage.setItem("needRefreshTab4", "true");
      localStorage.setItem("needRefreshTab5", "true");
      that.netWork();
    });
    return await modal.present();
  }

  searchButtonClick(obj, event) {
    console.log("to search history");

    if (obj.searchType === "6") {
      // 跳转到自定义页面
      const pageParams = {
        pageId: obj.link.target,
        params: {},
        sessionId: localStorage.getItem("sessionId"),
      };
      this.appGlobalService.goToForward(pageParams);
    } else {
      localStorage.removeItem("searchParams");
      localStorage.removeItem("invitationArr");
      const searchPath = "/navSearch";

      this.router.navigate([searchPath], {
        queryParams: { obj: JSON.stringify(obj) },
      });
    }
    if (event) {
      event.stopPropagation();
    }
  }

  /**
   * 返回方法
   */
  back() {
    this.appGlobalService.goBack();
  }

  close() {
    this.appGlobalService.goBack();
  }
  /** 收藏 */
  favorite(submit) {
    // 判断是否登录 登录 返回 详情
    const params = {
      id: submit.id,
      content: submit.content,
      sessionId: localStorage.getItem("sessionId"),
    };

    console.log("favorite --> submit", params);
    this.http.post("application/submit", params, (res) => {
      // 请求成功
      if (res.success) {
        // 更新收藏icon UI
        if (this.titleBar.favorite.icon === "unfavorite") {
          this.titleBar.favorite.icon = "favorite";
        } else {
          this.titleBar.favorite.icon = "unfavorite";
        }
        console.log("favorite -->", res.message);
      } else {
        // 请求数据失败
        this.appGlobalService.showToast(res.message, 2000, "middle");
        if (res.type === "page") {
          this.pageModalService.openPage({ type: 'page', target: res.target, params: res.params ? res.params : {} })
        }
      }
    });
  }

  // 分享弹框
  async presentModal() {
    const modal = await this.modalController.create({
      showBackdrop: true,
      cssClass: "sharePage",
      backdropDismiss: true,
      component: SharePageComponent,
      componentProps: { tagData: this.shareData },
    });
    await modal.present();
    // 监听销毁的事件
    const modalData = await modal.onDidDismiss(); // 获取关闭传回的值
    console.log(modalData);
  }

  /** 分享 */
  share(link) {
    console.log("share --> page", link);
    // 请求参数
    const params = {
      sessionId: localStorage.getItem("sessionId"),
      pageId: link.target,
      params: link.params,
    };
    this.http.post("application/page", params, (res) => {
      this.shareData = JSON.parse(res.script).views[0].tags[0].data;
      this.presentModal();
    });
  }

  subChange(obj, indexTab) {
    if (obj !== undefined && obj.partLink !== undefined) {
      this.subTagData.currentTab = indexTab;
      this.http.post(
        "application/part",
        {
          viewId: obj.partLink.target,
          sessionId: localStorage.getItem("sessionId"),
          params: obj.partLink.params,
        },
        (res: any) => {
          if (res !== undefined && res != null) {
            setTimeout(() => {
              this.subTagData.currentData = JSON.parse(res.script);
              localStorage.setItem(
                "refreshGrayBgTag",
                "" + this.subTagData.currentData.isGrayBg
              );
              this.eventService.eventEmit.emit(
                "refreshGrayBg",
                "refreshGrayBg"
              );
              localStorage.setItem(
                "dataMapFixedTabContainer",
                JSON.stringify(this.subTagData)
              );
              this.eventService.eventEmit.emit(
                "refreshTab1FixedContainer",
                "refreshTab1FixedContainer"
              );
            }, 50);
          }
        }
      );
    }
  }
  // 聊天
  chat(chat) {
    if (chat.link && chat.link.type === "chat") {
      const cityId = JSON.parse(localStorage.getItem("position"))
        ? JSON.parse(localStorage.getItem("position")).code
        : 4403;
      const ifLogin = localStorage.getItem("userId") !== "null";
      if (ifLogin) {
        if (localStorage.getItem("connUserId")) {
          this.http.getImId(
            chat.link.params.opportunity_id,
            chat.link.params.customer_id,
            cityId,
            (item) => {

              this.router.navigate(
                ["/chatOnline"],
                { queryParams: { item: JSON.stringify(item) } }
              );
            }
          );
        }
      }
      // else if (chat.loginPage) {
      // }
    }
  }
  // 更多
  moreLine(more) {
    const that = this;
    const buttons: any = [];
    more.data.forEach((element, index) => {
      buttons.push(element.label);
    });
    ActionSheetService.showActionSheetWithOptions(
      {
        options: buttons,
        maskClosable: true,
      },
      (buttonIndex) => {
        if (buttonIndex > -1) {
          console.log(more.data[buttonIndex]);
          that.selectItem(more.data[buttonIndex]);
        }
      }
    );
  }
  selectItem(item) {
    if (item.action === "submit") {
      item.submit.sessionId = localStorage.getItem("sessionId");
      console.log("more --> submit", item.submit);
      this.http.post("application/submit", item.submit, (res) => {
        this.appGlobalService.showToast(res.message, 2000, "middle");
      });
    } else if (item.action === "link") {
      const param = {
        pageId: item.link.target,
        params: item.link.params ? item.link.params : {},
        sessionId: localStorage.getItem("sessionId"),
      };
      this.appGlobalService.goToForward(param);
    } else if (item.action === "question") {
      // alert
      this.question(item);
    } else if (item.action === "prompt") {
      // 弹出输入框 alert
      this.inputAlert(item);
    } else if (item.action === "modal") {
      this.openRankingModal("ranking-modal", item);
    } else if (item.action === "view") {
      const param = {
        viewId: item.link.target,
        params: item.link.params ? item.link.params : {},
        sessionId: localStorage.getItem("sessionId"),
      };
      this.appGlobalService.goToForward(param);
    } else if (item.action = 'share') {
      this.share(item.link);
    } else if (item.action === "cityModal") {
      this.showCityModel(item.link.target);
    }
  }
  // ranking-modal
  async openRankingModal(className, item) {
    const params = {
      sessionId: localStorage.getItem("sessionId"),
      pageId: item.link.target,
      params: item.link.params,
    };
    this.http.post("application/page", params, async (res) => {
      const tagData = JSON.parse(res.script).views[0].tags[0].data;
      // "ranking-modal"
      const modal = await this.modalController.create({
        showBackdrop: true,
        cssClass: className,
        component: RankingModalComponent,
        componentProps: { tagData },
      });
      await modal.present();
      // 监听销毁的事件
      const modalData = await modal.onDidDismiss(); // 获取关闭传回的值
    });
  }
  // alert
  async question(item) {
    const alert = await this.alertController.create({
      header: "",
      subHeader: "",
      message: item.question,
      buttons: [
        {
          text: "取消",
          role: "cancel",
          cssClass: "secondary",
          handler: (blah) => {
            console.log("取消");
          },
        },
        {
          text: "确定",
          handler: () => {
            item.submit.sessionId = localStorage.getItem("sessionId");
            console.log("more --> submit", item.submit);
            this.http.post("application/submit", item.submit, (res) => {
              this.appGlobalService.showToast(res.message, 2000, "middle");
            });
          },
        },
      ],
    });
    await alert.present();
  }

  inputAlert(item) {
    const that = this;
    Modal.prompt(
      item.htmlObj.title,
      "",
      [
        {
          text: item.htmlObj.buttonLabel,
          onPress: (value) =>
            new Promise<void>((resolve, reject) => {
              if (value.length === 0 || that.appGlobalService.isPhone(value)) {
                resolve();
                item.submit.content[item.htmlObj.input.formKey] = value;
                item.submit.sessionId = localStorage.getItem("sessionId");
                console.log("more --> submit", item.submit);
                that.http.post("application/submit", item.submit, (res) => {
                  if (res.message) {
                    this.appGlobalService.showToast(
                      res.message,
                      2000,
                      "middle"
                    );
                  }
                });
              } else {
                that.appGlobalService.showToast(
                  "请输入正确的号码",
                  2000,
                  "top"
                );
              }
            }),
        },
      ],
      "default",
      null,
      [item.htmlObj.input.placeholder]
    );
  }
  //
  filter(filter) {
    const param = {
      pageId: filter.link.target,
      params: filter.link.params ? filter.link.params : {},
      sessionId: localStorage.getItem("sessionId"),
    };
    this.appGlobalService.goToForward(param);
  }

  // 确定提交表单用 暂时没用
  textButton(textButton) {
    // console.log(textButton);
    if (textButton !== undefined && textButton.link !== undefined) {
      this.pageModalService.openPage(textButton.link);
      // this.router.navigate(['navUrl'], { queryParams: { url: 'webSocket.html', title: '测试webSocket', target: '0' } });
    } else if (textButton !== undefined && textButton.submit !== undefined) {
      textButton.submit['sessionId'] = localStorage.getItem('sessionId');
      // 1.8.2 新增submit
      this.http.post('application/submit', textButton.submit, res => {
        this.appGlobalService.showToast(res.message, 2000, 'middle');
      });
    }
  }
  // 数组btn
  iconButtonClick(item) {
    this.selectItem(item);
  }

  toggle(toggleButton, index) {
    if (toggleButton[index].checked) {
      return;
    } else if (index === 0) {
      toggleButton[0].checked = true;
      toggleButton[1].checked = false;
      this.toggleChange(toggleButton[0], "0");
    } else {
      toggleButton[0].checked = false;
      toggleButton[1].checked = true;
      toggleButton[1].hasNew = false;
      this.toggleChange(toggleButton[1], "1");
      this.content.scrollToTop(100);
    }
  }

  getCurrentToggleData() {
    if (this.titleBar && this.titleBar.toggleButton) {
      this.titleBar.toggleButton.forEach((e, i) => {
        if (e.checked) {
          this.toggleChange(e, i.toString());
        }
      });
    }
  }

  toggleChange(obj, index?) {
    if (obj !== undefined && obj.partLink !== undefined) {
      //清除滑动容器的高度
      const appDivBox = document.getElementById('home-app-anchor-scroll');
      if (appDivBox) {
        if (appDivBox.style.height) {
          appDivBox.style.height = '0';
        }

      }

      //1.9.20 蜂喔推荐tab
      if (obj.partLink.params && obj.partLink.params.recommendTab) {
        if (this.appGlobalService.recommendTab !== 0) {
          obj.partLink.params.recommendTab = this.appGlobalService.recommendTab;
        }
      }

      this.http.post(
        "application/part",
        {
          viewId: obj.partLink.target,
          sessionId: localStorage.getItem("sessionId"),
          params: obj.partLink.params,
        },
        (res: any) => {
          if (res !== undefined && res != null) {

            const pageData = JSON.parse(res.script);
            if (pageData.serviceLink !== undefined) {
              this.serviceLink = pageData.serviceLink;
              this.appGlobalService.serviceLink = this.serviceLink;
            }
            this.appGlobalService.recommendTab = 0;
            this.tabsService.getPageData(res, (pageData) => {
              this.coms = pageData.coms;
              this.footerComs = pageData.footerComs;
            });
          }
        }
      );
    }


  }


  scrollEnd(e: any) {
    this.isScrolling = false;
    e.preventDefault();
    clearTimeout(this.timer);
    this.timer = setTimeout(() => {
      if (this.appGlobalService.topTop) {
        this.appGlobalService.topTop = false;
        this.content.scrollToTop(200);
      }
    }, 300);
  }
  // 定义一个异步函数来处理样式修改操作  
  async modifyStyle(e: any, titleBar?) {
    // 保留回到顶部 不受控制
    if (this.appGlobalService.clientType === 'lj' && document.getElementById("superCotainer") !== null) {
      this.appGlobalService.homePageScrollTop = e.detail.scrollTop;
      const dom = document.getElementById("myTabBar").firstElementChild;
      if (dom) {
        const imgDom = dom.firstElementChild as HTMLElement;
        const textDom = dom.lastElementChild as HTMLElement;
        if (this.appGlobalService.homePageToTop === false && e.detail.scrollTop >= 252) {
          clearTimeout(this.timer2);
          clearTimeout(this.timer3);
          this.timer2 = setTimeout(() => {
            if (textDom['textContent'] !== '回顶部') {
              imgDom['src'] = "assets/icon/tabbar_icon_zhiding_prs.gif";
              textDom['textContent'] = '回顶部';
            }
            this.appGlobalService.homePageToTop = true;
          }, 30);
        } else
          if (this.appGlobalService.homePageToTop === true && e.detail.scrollTop < 252) {
            clearTimeout(this.timer2);
            clearTimeout(this.timer3);
            this.timer3 = setTimeout(() => {
              if (textDom['textContent'] !== '首页') {
                imgDom['src'] = "assets/icon/lj_tabbar_icon_home_pre.gif";
                textDom['textContent'] = '首页';
              }
              this.appGlobalService.homePageToTop = false;
            }, 30);
          }
      }


    }
    if (titleBar && titleBar.onScroll === 'false') {
      // 不处理onScroll内逻辑
      // <!-- 页面title设置 2023年11月8日新增onScroll="false" 返回字符串“false” 表示前端页面不处理滑动事件； 不配置不返回属性  -->
      return;
    }
    let that = this;
    // 导航全透明滑动变化
    //     <!-- titleBar 增加属性  headerId  、customBgStyle， customBg（要支持富文本），
    // 滑动前样式原有headerStyle，background （作用于toolbar),  新增 toolbarStyle 
    // 滑动后要改变样式用到：新增： headerChangeStyle ,toolbarChangeStyle
    // 共新增 6个属性  -->
    if (this.titleBar && this.titleBar.headerId && document.getElementById('home-header-bg-box' + this.titleBar.headerId) && this.titleBar.fullscreen) {
      this.content.ionScroll.subscribe(($event: any) => {
        const ionHeader = document.getElementById('home-header-bg-box' + this.titleBar.headerId) as HTMLElement;
        const ionToolbar = document.getElementById('superToolbar' + this.currentRootTabId) as HTMLElement;
        if ($event.detail.scrollTop > 64 && !that.isHearderDivInConent) {
          console.log('onScroll:__fullscreen' + $event.detail.scrollTop);
          that.isHearderDivInConent = true;
          try {
            if (this.titleBar.headerChangeStyle && this.titleBar.toolbarChangeStyle) {
              ionHeader.setAttribute("style", this.titleBar.headerChangeStyle);
              ionToolbar.setAttribute("style", this.titleBar.toolbarChangeStyle);
            } else {
              ionHeader.setAttribute("style", "background:white;position:fixed;z-index: 10000;");
              ionToolbar.setAttribute("style", "--background:white;padding-top:constant(safe-area-inset-top)");

            }
            // title
            if (ionToolbar.children && ionToolbar.children.length > 0 && this.titleBar.title) {
              const that = this;
              $("#" + 'superToolbar' + this.currentRootTabId).children().each(function (i, e) {

                if (e.id == "nav-title") {
                  if (that.titleBar.title.changeCssStyle) {
                    e.setAttribute("style", that.titleBar.title.changeCssStyle);
                  } else {
                    // e.setAttribute("style", "font-size: 1.13rem;font-weight: bold;padding: unset !important;color: #0f0f0f;");
                  }
                }
              });

            }

          } catch (error) {

          }
        } else if ($event.detail.scrollTop <= 64 && that.isHearderDivInConent) {
          that.isHearderDivInConent = false;
          try {

            if (this.titleBar.headerStyle && this.titleBar.toolbarStyle) {
              ionHeader.setAttribute("style", this.titleBar.headerStyle);
              ionToolbar.setAttribute("style", this.titleBar.toolbarStyle);
            } else {
              ionHeader.setAttribute("style", "background:transparent;position:fixed;z-index: 10000;backdrop-filter:unset;");
              ionToolbar.setAttribute("style", "--background:transparent;padding-top:constant(safe-area-inset-top)");
            }
            // title
            if (ionToolbar.children && ionToolbar.children.length > 0 && this.titleBar.title) {
              const that = this;
              $("#" + 'superToolbar' + this.currentRootTabId).children().each(function (i, e) {

                if (e.id == "nav-title") {
                  if (that.titleBar.title.cssStyle) {
                    e.setAttribute("style", that.titleBar.title.cssStyle);
                  } else {
                    // e.setAttribute("style", "font-size: 1.13rem;font-weight: bold;padding: unset !important;color: transparent;");
                  }
                }
              });
            }

          } catch (error) {

          }
        }
      })
    }
  }

  onScroll(e: any, titleBar?) {
    this.isScrolling = true;
    e.preventDefault();
    this.modifyStyle(e, titleBar);
  }
  // slide Location 标签
  homeAnchorScroll(event) {

    event.preventDefault();
    if (window['tabLocationCanScroll']) {
      if (document.getElementById("home-app-anchor-scroll")) {
        if (event.target.scrollTop >= document.getElementById('shopsell').offsetTop && event.target.scrollTop < document.getElementById('designer').offsetTop) {
          document.getElementById('slideLocationHide1').click();
          // $('#slideLocation1').addClass('tab-checked');
          // window['pageModalService']['eventService'].eventEmit.emit("updateIndex", 1);
          window['tabLocationCanScroll'] = false;
          setTimeout(() => {
            window['tabLocationCanScroll'] = true;
          }, 195);
        } else if (event.target.scrollTop >= document.getElementById('designer').offsetTop && event.target.scrollTop < document.getElementById('shopgoods').offsetTop) {
          document.getElementById('slideLocationHide2').click();
          // window['pageModalService']['eventService'].eventEmit.emit("updateIndex", 2);
          window['tabLocationCanScroll'] = false;
          setTimeout(() => {
            window['tabLocationCanScroll'] = true;
          }, 195);
        } else if (event.target.scrollTop >= document.getElementById('shopgoods').offsetTop && event.target.scrollTop < document.getElementById('worker').offsetTop) {
          document.getElementById('slideLocationHide3').click();
          // window['pageModalService']['eventService'].eventEmit.emit("updateIndex", 3);
          window['tabLocationCanScroll'] = false;
          setTimeout(() => {
            window['tabLocationCanScroll'] = true;
          }, 195);
        } else if (event.target.scrollTop >= 0 && event.target.scrollTop < document.getElementById('shopsell').offsetTop) {
          document.getElementById('slideLocationHide0').click();
          // window['pageModalService']['eventService'].eventEmit.emit("updateIndex", 0);
          window['tabLocationCanScroll'] = false;
          setTimeout(() => {
            window['tabLocationCanScroll'] = true;
          }, 195);
        }
      }
    }

  }






  // 点击遮罩层关闭下拉面板
  backdropclick() {
    // add by andrew.wen for openBackDrop
    this.appGlobalService.openBackdrop = false;
    this.openBackdrop = false;
  }
  // 刷新当前页
  refreshPage() {
    clearTimeout(this.timer)
    const that = this;
    this.timer = setTimeout(() => {
      if (localStorage.getItem('sessionId')) {
        that.viewParams.params.code = JSON.parse(
          localStorage.getItem("position")
        ).code;
        that.netWork();
      } else {
        that.http.getSession((res) => {
          that.viewParams.params.code = JSON.parse(
            localStorage.getItem("position")
          ).code;
          that.netWork();
        }, err => {

        });
      }
    });
  }


  async segmentChanged(e: any) {
    const index = e.detail.value;
    const segmentButton = this.segment.nativeElement.children[index];
    segmentButton.scrollIntoView({
      behavior: "smooth",
      inline: "center",
      block: "nearest",
    });
    if (this.tagData.data) {
      this.tagData.currentTab = index;
      if (localStorage.getItem("topTapPart" + index)) {
        const parseData = JSON.parse(
          localStorage.getItem("topTapPart" + index)
        );
        this.tagData.currentData = parseData;
        localStorage.setItem(
          "refreshGrayBgTag",
          "" + this.tagData.currentData.isGrayBg
        );
        this.eventService.eventEmit.emit("refreshGrayBg", "refreshGrayBg");
        setTimeout(() => {
          localStorage.setItem(
            "dataMapTopTabContainer",
            JSON.stringify(this.tagData)
          );
          this.eventService.eventEmit.emit(
            "refreshTopTabContainer",
            "refreshTopTabContainer"
          );
          this.content.scrollToTop(0);
        }, 200);
      } else {
        this.http.post(
          "application/part",
          {
            viewId: this.tagData.data[index].partLink.target,
            sessionId: localStorage.getItem("sessionId"),
            params: this.tagData.data[index].partLink.params,
          },
          (res: any) => {
            // #616 修改：点击转让服务和选址服务跳到第一屏的画面
            this.content.scrollToTop(0);
            if (res !== undefined && res != null) {
              setTimeout(() => {
                this.tagData.currentData = JSON.parse(res.script);
                localStorage.setItem(
                  "refreshGrayBgTag",
                  "" + this.tagData.currentData.isGrayBg
                );
                this.eventService.eventEmit.emit(
                  "refreshGrayBg",
                  "refreshGrayBg"
                );
                localStorage.setItem(
                  "dataMapTopTabContainer",
                  JSON.stringify(this.tagData)
                );
                this.eventService.eventEmit.emit(
                  "refreshTopTabContainer",
                  "refreshTopTabContainer"
                );
              }, 50);
            }
          }
        );
      }
    }
  }

  async customSegmentChanged(e: any) {
    const index = e.detail.value;
    if (index === "NaN") {
      return;
    }
    try {
      const segmentButton = this.custSegment.nativeElement.children[index];
      segmentButton.scrollIntoView({
        behavior: "smooth",
        inline: "center",
        block: "nearest",
      });
    } catch (error) { }
    this.showIndicator();
    if (this.custTabTagData.data) {
      this.custTabTagData.currentTab = index;
      this.http.post(
        "application/part",
        {
          viewId: this.custTabTagData.data[index].partLink.target,
          sessionId: localStorage.getItem("sessionId"),
          params: this.custTabTagData.data[index].partLink.params,
        },
        (res: any) => {
          if (res) {
            const tmpData = JSON.parse(res.script);
            // 发送事件
            const receiverTag = "ButtonNavOneComponentReceiver";
            const eventEmitObj = { data: tmpData, receiverTag };
            localStorage.setItem(
              "generatedComItemWithBufferTag",
              JSON.stringify(eventEmitObj)
            );
            this.eventService.eventEmit.emit("generatedComItemWithBuffer", "");
            // this.tabService.getPageDataWithBuffer(tmpData, callData => {
            //     this.subComs8 = callData.coms;
            // });
            // 修复默认选中不正确bug
            localStorage.setItem(
              "buttonNavOneTabClickRefreshTag",
              JSON.stringify(index)
            );
            this.eventService.eventEmit.emit("buttonNavOneTabClickRefresh", "");
          }
        }
      );
    }
  }

  showIndicator() {
    // const len = this.tagData.data.length;
    // for (let i = 0; i < len; i++) {
    //     document.getElementById('segmentIndicator' + i).style.display = "none";
    // }

    // bug: #574 切换tab页后应从当前tab的第一条信息开始展示
    const contents = document.querySelectorAll("ion-content");
    const ele = document.querySelector("ion-content #scrollContent");
    let target = null;
    contents.forEach((item) => {
      if (this.isChildOf(ele, item)) {
        target = item;
      }
    });
    target.getScrollElement().then((e) => {
      if (e.scrollTop >= document.getElementById("scrollContent").offsetTop) {
        target.scrollToPoint(
          0,
          document.getElementById("scrollContent").offsetTop + 44
        );

      }
    });
  }
  isChildOf(child, parent) {
    let parentNode;
    if (child && parent) {
      parentNode = child.parentNode;
      while (parentNode) {
        if (parent === parentNode) {
          return true;
        }
        parentNode = parentNode.parentNode;
      }
    }
    return false;
  }

  refreshData(event) {
    event.target.complete();
    const nowTime = new Date().getTime() / 1000; // 指定毫秒数内不刷新
    if (nowTime - this.refreshDataTime > this.refreshDelayTime) {

      // 2023.11.21 只用于触发选项卡以及配置的函数事件,不处理业务
      this.eventService.emit('scrollToRefreshByNeedRefreshCurrentTab', '1')

      // localStorage.setItem('needRefreshTab1', 'true');
      // this.canRequest = true;
      // this.getViewData();
      // this.refreshDataTime = nowTime;
    }

  }

  loadData(event) {
    // this.content.scrollByPoint(0, 100, 100);
    // setTimeout(() => {
    // this.content.scrollByPoint(0, -100, 100);
    event.target.complete();
    // }, 150);
  }
  ionViewWillEnter() {
    console.log('enter1');
    if (this.appTypeCustom === 'LJ' && document.getElementById('switchBoxId-home')) {
      if (this.appGlobalService.globalSubscription && this.appGlobalService.globalSubscription.closed === true) {
        this.appGlobalService.needClearGlobalSubscription = true;
      }
      if (this.appGlobalService.needAutoChoosenTab === true) {
        this.appGlobalService.needAutoChoosenTab = false;
        this.appGlobalService.needClearGlobalSubscription = true;
        localStorage.setItem("buttonNavOneTabClickRefreshTag", localStorage.getItem('buttonNavOneTabIndex'));
        this.eventService.eventEmit.emit("buttonNavOneTabClickRefresh", "buttonNavOneTabClickRefresh");
      }
    }
    if (this.eventService.eventEmit.listenerCount('TOTOP') > 0) {
      this.eventService.eventEmit.removeListener('TOTOP');
    }
    this.eventService.eventEmit.on("TOTOP", (obj) => {
      // console.log("TOTOP tab1");
      if (this.isScrolling) {
      } else {
        this.appGlobalService.topTop = false;
        this.content.scrollToTop(200);
      }
    });
  }

  ionViewWillLeave() {
    console.log('leave1');
    if (this.appTypeCustom === 'LJ') {
      if (this.appGlobalService.floatShoppingCartObj["isShow"] === true && this.appGlobalService.floatShoppingCartIsShow !== false) {
        this.appGlobalService.showfloatShoppingCart(false);
      }
      if (document.getElementById('switchBoxId-home')) {
        if (this.appGlobalService.needClearGlobalSubscription === true) {
          // localStorage.setItem("unSubscribeGenerallistFWTag", "1");
          // this.eventService.eventEmit.emit("unSubscribeGenerallistFW", "unSubscribeGenerallistFW");
        }
      }
    }
  }



  checkAppUpdate() {
    this.platform.ready().then(() => {

      console.log('tab1 platform.ready() 1');

      if (localStorage.getItem('client') === 'APP' && localStorage.getItem('platform') === 'android') {
        this.splashScreen.hide();
        setTimeout(() => {
          this.checkUpdate('android');
        }, 3000);
      }

      if (localStorage.getItem('client') === 'APP' && localStorage.getItem('platform') === 'ios') {
        this.splashScreen.hide();
        setTimeout(() => {
          this.pageModalService.initJiguangPushAndAddListener();
          this.checkUpdate('ios');
        }, 3000);
      }
    });
    // 处理tab2,tab3直接访问可能初始化不了的问题
    // setTimeout(() => {
    //   this.getBaiduApiScript();
    // }, 1000);
  }
  // 滑动到顶部 
  scrollToTop(event) {
    if (event) {
      event.stopPropagation();
    }
    this.content.scrollToTop(1000);
  }


  switchBlockClick(item, className) { }

  // 蜂喔商户新增消息提醒
  palyMsgAudio() {
    $('#messageAudio').paly();
  }
  gotoEnterpriseWechat(e) {
    e.stopPropagation();
    if (this.serviceLink.target) {
      const hiddenCustomerServiceLink = this.serviceLink.target;
      const tempParam = Object.assign(this.serviceLink.params, { download: true });
      const ePageLink = { type: 'url', urlLinkTitle: '', target: hiddenCustomerServiceLink, params: tempParam };
      this.pageModalService.openPage(ePageLink);
    }
  };
  showTipBox(type) {
    this.appGlobalService.showTipBox(type);
  }
  changeCity(item, event?) {
    if (event !== undefined) {
      event.stopPropagation();
    }
  }

  /**
  * 添加class
  */
  addClass(ele, value) {
    if (value) {
      let curValue = this.getClass(ele);
      if (curValue.indexOf(value) === -1) {
        curValue = curValue + " " + value;
      }
      ele.setAttribute("class", curValue.trim());
    }
  }
  /**
   * 删除class
   */
  removeClass(ele, value) {
    if (value) {
      let curValue = this.getClass(ele);
      if (curValue.indexOf(value) > -1) {
        curValue = (" " + curValue + " ").replace(" " + value + " ", " ");
      }
      ele.setAttribute("class", curValue.trim());
    }
  }
  /**
   * 元素是否存在值为@{value}的class
   */
  hasClass(ele, value) {
    let has = false;
    if (value) {
      const curValue = this.getClass(ele);
      if (curValue.indexOf(value) > -1) {
        has = true;
      }
    }
    return has;
  }

  /**
   * 获取class
   */
  getClass(elem) {
    return elem.getAttribute && elem.getAttribute("class") || "";
  }
  checkUpdate(platform) {
    let jsonUrl = '';
    if (platform === 'ios') {
      jsonUrl = 'http://download.xw18.cn/ios/ios.txt?';
    } else {
      jsonUrl = 'http://download.xw18.cn/android/metdata_apk/android.json?';
    }
    const that = this;
    this.appVersion.getVersionNumber().then((value: any) => {
      localStorage.setItem('localAppVersion', value);
      this.http.get(jsonUrl + new Date().getTime(), (res) => {
        const versionTxt = JSON.parse(JSON.stringify(res));
        that.appVersion.getPackageName().then((name: any) => {
          let appVersionObj: any;
          appVersionObj = versionTxt[name];
          console.log('appVersionObj is ' + appVersionObj.version);
          // 修复发布版本出现比较异常的bug
          const localVersionArray = value.split('.');
          const serverVersionArray = appVersionObj.version.split('.');

          if (parseInt(serverVersionArray[0], 10) > parseInt(localVersionArray[0], 10)) {// 第一位
            that.showUpdate(appVersionObj);

          } else if (parseInt(serverVersionArray[0], 10) === parseInt(localVersionArray[0], 10)) {

            if (parseInt(serverVersionArray[1], 10) > parseInt(localVersionArray[1], 10)) { // 第二位
              that.showUpdate(appVersionObj);

            } else if (parseInt(serverVersionArray[1], 10) === parseInt(localVersionArray[1], 10)) {

              if (parseInt(serverVersionArray[2], 10) > parseInt(localVersionArray[2], 10)) { // 第三位
                that.showUpdate(appVersionObj);
              } else if (parseInt(serverVersionArray[2], 10) === parseInt(localVersionArray[2], 10)) {
                // 第四位
                if (serverVersionArray.length >= 4 && localVersionArray.length >= 4 && parseInt(serverVersionArray[3], 10) > parseInt(localVersionArray[3], 10)) {
                  that.showUpdate(appVersionObj);
                } else if (serverVersionArray.length >= 4 && localVersionArray.length === 3 && parseInt(serverVersionArray[3], 10) > 0) {
                  // 仅新版本有第四位
                  that.showUpdate(appVersionObj);
                }

              }
            } else {
              // 服务器第二位小于本地第二位
            }
          } else {
            // 服务器第一位小于本地第一位
          }
        });

      }, (error) => {
        console.log('msg-----> 更新版本号:' + JSON.stringify(error));
      }, 'true');
    }).catch(err => {
      console.log('msg-----> getVersionNumber:' + err);
    });
  }
  showUpdate(appVersionObj) {
    // 计算规则：以100M带宽2.4G频段均值速度10m/s为标准，更新包大小/均值速度，得出更新时间，单位：秒
    const that = this;
    // appVersionObj.downloadTime = 5; // 设置默认值
    if (appVersionObj.platform === 'ios') {
      this.http.get("http://itunes.apple.com/lookup?id=" + appVersionObj.appId + '&time=' + new Date().getTime(), (res) => {
        const appData = JSON.parse(JSON.stringify(res));
        if (appData.results && appData.results.length) {
          // appVersionObj.downloadTime = Math.ceil(appData.results[0].fileSizeBytes / 10000000);
          that.checkModalDelayShow(appVersionObj);
        } else {
          that.checkModalDelayShow(appVersionObj);
        }
      }, (error) => {
        console.log('msg-----> 获取AppStore info:' + JSON.stringify(error));
        that.checkModalDelayShow(appVersionObj);
      }, 'true');
    } else {
      that.checkModalDelayShow(appVersionObj);
    }

  }

  async checkModalDelayShow(appVersionObj) {
    const model = await this.modalController.getTop();
    if (model !== undefined) {
      setTimeout(() => {
        this.checkModalDelayShow(appVersionObj);
      }, 1000);
    } else {
      this.pageModalService.showPopover('update', appVersionObj);
    }

  }
  useLocalData() {
    const that = this;
    // if (this.appGlobalService.clientType === 'lj') {

    this.platform.ready().then(() => {
      if (localStorage.getItem('tab1PartData')) {
        console.log('tab1 use last data platform.ready() 1');
        const dataStr = localStorage.getItem('tab1PartData') as string;
        const data = JSON.parse(dataStr);
        if ((this.appGlobalService.clientType === 'lj') || (this.appGlobalService.clientType === 'js' && localStorage.getItem('loginStatus') === 'true'))
          this.processPartData(data, true);

      } else {
        console.log('tab1 use local data platform.ready() 1');
        if (this.appGlobalService.clientType === 'lj') {
          // 商户首次使用不能确定用户身份 不使用本地首页数据
          this.processPartData(this.localData(), true);
        }
      }
    })

    // }

  }

  localData() {
    return {
      "script": "{\"type\":\"view\",\"style\":\"view.ExtendViewLogic\",\"name\":null,\"isGrayBg\":true,\"isShell\":false,\"showWaterImg\":false,\"showRefresher\":true,\"showLoading\":true,\"tags\":[{\"type\":\"tag\",\"style\":\"tag.AppSimpleDetailTagLogic\",\"name\":\"app-simple-detail-tag\",\"linearLayout\":\"body\",\"data\":{\"link\":{\"label\":\"mapLink\",\"iconUrl\":\"..../png\",\"type\":\"page\",\"params\":{},\"target\":\"203382\"},\"iconUrl\":\"..../png\",\"cssType\":\"28-report-page\"},\"shellDataId\":\"0\"},{\"type\":\"tag\",\"style\":\"tag.AppSimpleDetailTagLogic\",\"name\":\"app-simple-detail-tag\",\"linearLayout\":\"body\",\"data\":{\"settingAGSValue\":\"202911\",\"settingAGSName\":\"homePageId\",\"cssType\":\"28-report-page\"},\"shellDataId\":\"0\"},{\"type\":\"tag\",\"style\":\"tag.AppSimpleDetailTagLogic\",\"name\":\"app-simple-detail-tag\",\"linearLayout\":\"body\",\"data\":{\"removeCustomValue\":\"alreadySelectArea\",\"cssType\":\"28-report-page\"},\"shellDataId\":\"0\"},{\"type\":\"tag\",\"style\":\"videoNewTag\",\"name\":null,\"linearLayout\":\"body\",\"data\":[{\"soundOffIcon\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1729753610859642dc2c6412a2fd3bacf5f7b84786c36.png\",\"sound\":\"off\",\"cssStyle\":\"***\",\"playIconCssStyle\":\"top:30%;background-size: 64px;background-position: center;\",\"link\":{\"type\":\"page\",\"params\":{\"tabName\":\"2\",\"apply_append_id\":\"6724724b00fdd336656158a7\",\"share_type\":\"0\",\"user_id\":\"6167e5b9a82423502f1df5ae\",\"type\":\"9\"},\"target\":\"203730\"},\"backNeedPlay\":\"1\",\"titleBgCssStyle\":\"\",\"title\":\" \",\"soundOnIcon\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_172975365879442b10fc4223d735c66cb1f5a0901c3a2.png\",\"soundCssStyle\":\"***\",\"hivideoCssStyle\":\"height:177.78vw;margin-top:-38.89vw;width:100vw;\",\"videoUrl\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/video_412172c98a39ad53e09c5451d780bf93.mp4\",\"palyFullIcon\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_173044324234452187a58a884aa12e273447d8934d0ca.png\",\"palyFullIconCssStyle\":\"width: 2.25rem;height: 1.25rem;object-fit: contain;object-position: right;\",\"autoPlay\":false,\"titleCssStyle\":\"font-weight: bold;font-size: 0.88rem;color: #FFFFFF;\"}],\"shellDataId\":\"0\"},{\"type\":\"tag\",\"style\":\"tag.AppGeneralButtonTagLogic\",\"name\":\"appGeneralFormTag\",\"linearLayout\":\"body\",\"cssStyle\":\"margin-top: -0.75rem;padding-top: 1.44rem;position: relative;z-index: 10000;background: #F5F5F5;border-radius: 1rem 1rem 0 0;\",\"data\":[{\"cssColor\":\"orange\",\"question\":\"郭英勇：18824261439\",\"phone\":\"18824261439\",\"icon\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_172587038077851a634c5a8f3db2d1bf58b5b61a44438.png\",\"cssStyle\":\"margin: 0px 0.5rem 0rem 0.75rem;padding: 0.69rem 0rem 1.5rem;flex:1;height: 2.88rem;background: #D7EBFA;border-radius: 0.63rem;align-items: unset;flex-direction: unset;\",\"action\":\"questionCall\",\"iconCssStyle\":\"width: 1.5rem;height: 1.5rem;margin-right: 0.5rem;margin-left: unset;\",\"label\":\"电话\",\"paramName\":\"\",\"labelCssStyle\":\"font-weight: bold;font-size: 1rem;color: #0F0F0F;margin-left: unset;\"},{\"cssColor\":\"orange\",\"icon\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_17258704370845a88e93c994ba24eea6f3d72425dec40.png\",\"cssStyle\":\"margin: 0px;padding: 0.69rem 0rem 1.5rem;flex:1;height: 2.88rem;background: #D0F2DC;border-radius: 0.63rem;align-items: unset;flex-direction: unset;\",\"link\":{\"type\":\"pageModal\",\"params\":{\"user_id\":\"6167e5b9a82423502f1df5ae\",\"modalCss\":\"auto-modal\",\"back_type\":\"0\",\"cssStyle\":\"margin-left: 1.75rem;margin-right: 1.69rem;border-radius: 1rem;background: transparent;\",\"recruit_type\":\"1\",\"type\":\"1\"},\"target\":\"203845\"},\"iconCssStyle\":\"width: 1.5rem;height: 1.5rem;margin-right: 0.5rem;margin-left: unset;\",\"label\":\"微信\",\"paramName\":\"type,modalCss,recruit_type,cssStyle,user_id,back_type\",\"round\":\"false\",\"size\":\"\",\"plain\":\"false\",\"action\":\"link\",\"disabled\":\"false\",\"labelCssStyle\":\"font-weight: bold;font-size: 1rem;color: #0F0F0F;margin-left: unset;\"},{\"cssColor\":\"orange\",\"icon\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_17258704111642f5949fdd60e3ac0e07e507962d18b11.png\",\"cssStyle\":\"margin: 0px 0.75rem 0rem 0.5rem;padding: 0.69rem 0rem 1.5rem;flex:1;height: 2.88rem;background: #F5EABC;border-radius: 0.63rem;align-items: unset;flex-direction: unset;\",\"link\":{\"type\":\"page\",\"params\":{\"passwordLogin\":{\"type\":\"page\",\"target\":\"202834\"},\"page_name\":\"add_leaving_message_page\",\"my_shop_info_setting_id\":\"66a20613430c190f12a7dd4d\",\"business_id\":\"\",\"oneLogin\":{\"type\":\"page\",\"target\":\"203473\"}},\"target\":\"203844\"},\"iconCssStyle\":\"width: 1.5rem;height: 1.5rem;margin-right: 0.5rem;margin-left: unset;\",\"label\":\"留言\",\"paramName\":\"my_shop_info_setting_id,business_id,oneLogin,passwordLogin,page_name\",\"round\":\"false\",\"size\":\"\",\"plain\":\"false\",\"action\":\"link\",\"disabled\":\"false\",\"labelCssStyle\":\"font-weight: bold;font-size: 1rem;color: #0F0F0F;margin-left: unset;\"}],\"shellDataId\":\"0\"},{\"type\":\"tag\",\"style\":\"appCardListTag\",\"name\":\"appCardListTag2\",\"linearLayout\":\"body\",\"id\":null,\"listBgCssStyle\":\"padding-bottom:0rem;\",\"data\":{\"isMargin\":false,\"data\":[{\"img_v\":{\"imgUrl\":\"https://oss-hxq-prod.szbaoly.com/bjsc/goods/dde4add1-6710-4a1f-bac9-eff5d348dcb4.jpg\",\"cssStyle\":\"background: #F5F6F7;border-radius: 0.38rem;\"},\"thirdRowLeft\":{\"firstText\":{\"cssStyle\":\"font-weight: 600;font-size: 0.75rem;color: #FF660D;\",\"label\":\"￥\"},\"secondText\":{\"priceCssStyle\":\"font-weight: bold;font-size: 1.13rem;color: #FF660D;\",\"price\":\"69.00\"}},\"link\":{\"type\":\"page\",\"params\":{\"latitude\":\"latitude\",\"calculateDistrictCode\":\"1\",\"shop_goods_id\":\"66dfb9b4fe99737703ec73be\",\"longitude\":\"longitude\"},\"target\":\"203452\"},\"imgTag\":{\"cssStyle\":\"background: linear-gradient(135deg, #FFDE3B 0%, #FFC933 100%);border-radius: 0.5rem 0rem 0.5rem 0rem;font-size: 0.69rem;color: #252629;line-height: 1rem;left: 0rem;top: 0rem;\",\"label\":\"自营\"},\"title\":{\"firstText\":{\"cssStyle\":\"height:unset;font-weight: bold;font-size: 0.88rem;color: #0F0F0F;margin-top:0rem;padding-top:0.38rem;\",\"label\":\"天鲜萌黑猪肉烤肠85%黑猪肉400g（8根）*4盒\"}}},{\"img_v\":{\"imgUrl\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1727356862710f2b94ab8bd7f8c6d6e7396b7eb57c6da.jpg\",\"cssStyle\":\"background: #F5F6F7;border-radius: 0.38rem;\"},\"thirdRowLeft\":{\"firstText\":{\"cssStyle\":\"font-weight: 600;font-size: 0.75rem;color: #FF660D;\",\"label\":\"￥\"},\"secondText\":{\"priceCssStyle\":\"font-weight: bold;font-size: 1.13rem;color: #FF660D;\",\"price\":\"518.00\"}},\"link\":{\"type\":\"page\",\"params\":{\"latitude\":\"latitude\",\"calculateDistrictCode\":\"1\",\"shop_goods_id\":\"66f56c2d589a8c0797db2102\",\"longitude\":\"longitude\"},\"target\":\"203452\"},\"imgTag\":{\"cssStyle\":\"background: linear-gradient(135deg, #FFDE3B 0%, #FFC933 100%);border-radius: 0.5rem 0rem 0.5rem 0rem;font-size: 0.69rem;color: #252629;line-height: 1rem;left: 0rem;top: 0rem;\",\"label\":\"自营\"},\"title\":{\"firstText\":{\"cssStyle\":\"height:unset;font-weight: bold;font-size: 0.88rem;color: #0F0F0F;margin-top:0rem;padding-top:0.38rem;\",\"label\":\"吾乐美焕活（赋活）凝胶1瓶\"}}},{\"img_v\":{\"imgUrl\":\"https://oss-hxq-prod.szbaoly.com/bjsc/goods/512852ec-d61d-4b2a-acef-05fdf7580522.jpg\",\"cssStyle\":\"background: #F5F6F7;border-radius: 0.38rem;\"},\"thirdRowLeft\":{\"firstText\":{\"cssStyle\":\"font-weight: 600;font-size: 0.75rem;color: #FF660D;\",\"label\":\"￥\"},\"secondText\":{\"priceCssStyle\":\"font-weight: bold;font-size: 1.13rem;color: #FF660D;\",\"price\":\"28.90\"}},\"link\":{\"type\":\"page\",\"params\":{\"latitude\":\"latitude\",\"calculateDistrictCode\":\"1\",\"shop_goods_id\":\"66c9861d910aa858a6c50cb0\",\"longitude\":\"longitude\"},\"target\":\"203452\"},\"imgTag\":{\"cssStyle\":\"background: linear-gradient(135deg, #FFDE3B 0%, #FFC933 100%);border-radius: 0.5rem 0rem 0.5rem 0rem;font-size: 0.69rem;color: #252629;line-height: 1rem;left: 0rem;top: 0rem;\",\"label\":\"自营\"},\"title\":{\"firstText\":{\"cssStyle\":\"height:unset;font-weight: bold;font-size: 0.88rem;color: #0F0F0F;margin-top:0rem;padding-top:0.38rem;\",\"label\":\"生机森林樱花香氛洗衣液家用持久留香温和去污柔顺深层护衣超值囤货\"}}},{\"img_v\":{\"imgUrl\":\"https://oss-hxq-prod.szbaoly.com/bjsc/goods/a042e7e5-6985-47b4-8954-798087037261.jpg\",\"cssStyle\":\"background: #F5F6F7;border-radius: 0.38rem;\"},\"thirdRowLeft\":{\"firstText\":{\"cssStyle\":\"font-weight: 600;font-size: 0.75rem;color: #FF660D;\",\"label\":\"￥\"},\"secondText\":{\"priceCssStyle\":\"font-weight: bold;font-size: 1.13rem;color: #FF660D;\",\"price\":\"22.90\"}},\"link\":{\"type\":\"page\",\"params\":{\"latitude\":\"latitude\",\"calculateDistrictCode\":\"1\",\"shop_goods_id\":\"65ba37e782f61d5c654a3688\",\"longitude\":\"longitude\"},\"target\":\"203452\"},\"imgTag\":{\"cssStyle\":\"background: linear-gradient(135deg, #FFDE3B 0%, #FFC933 100%);border-radius: 0.5rem 0rem 0.5rem 0rem;font-size: 0.69rem;color: #252629;line-height: 1rem;left: 0rem;top: 0rem;\",\"label\":\"自营\"},\"title\":{\"firstText\":{\"cssStyle\":\"height:unset;font-weight: bold;font-size: 0.88rem;color: #0F0F0F;margin-top:0rem;padding-top:0.38rem;\",\"label\":\"妙味哥长沙老卤粉正宗劲道双口味老卤粉195克\"}}},{\"img_v\":{\"imgUrl\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_171867941880626c3759defae58de98dc78cecd1fd270.jpg\",\"cssStyle\":\"background: #F5F6F7;border-radius: 0.38rem;\"},\"thirdRowLeft\":{\"firstText\":{\"cssStyle\":\"font-weight: 600;font-size: 0.75rem;color: #FF660D;\",\"label\":\"￥\"},\"secondText\":{\"priceCssStyle\":\"font-weight: bold;font-size: 1.13rem;color: #FF660D;\",\"price\":\"209.00\"}},\"link\":{\"type\":\"page\",\"params\":{\"latitude\":\"latitude\",\"calculateDistrictCode\":\"1\",\"shop_goods_id\":\"666c0acd841b0e4d268feb22\",\"longitude\":\"longitude\"},\"target\":\"203452\"},\"imgTag\":{\"cssStyle\":\"background: linear-gradient(135deg, #FFDE3B 0%, #FFC933 100%);border-radius: 0.5rem 0rem 0.5rem 0rem;font-size: 0.69rem;color: #252629;line-height: 1rem;left: 0rem;top: 0rem;\",\"label\":\"自营\"},\"title\":{\"firstText\":{\"cssStyle\":\"height:unset;font-weight: bold;font-size: 0.88rem;color: #0F0F0F;margin-top:0rem;padding-top:0.38rem;\",\"label\":\"贵州金沙回沙酒酱香型53度500ml（VIP）\"}}},{\"img_v\":{\"imgUrl\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1723792112310f190efe6008d0dc3cdcf74e816aa0e08.jpg\",\"cssStyle\":\"background: #F5F6F7;border-radius: 0.38rem;\"},\"thirdRowLeft\":{\"firstText\":{\"cssStyle\":\"font-weight: 600;font-size: 0.75rem;color: #FF660D;\",\"label\":\"￥\"},\"secondText\":{\"priceCssStyle\":\"font-weight: bold;font-size: 1.13rem;color: #FF660D;\",\"price\":\"81.90\"}},\"link\":{\"type\":\"page\",\"params\":{\"latitude\":\"latitude\",\"calculateDistrictCode\":\"1\",\"shop_goods_id\":\"66befc94695ec0062dbb94a9\",\"longitude\":\"longitude\"},\"target\":\"203452\"},\"imgTag\":{\"cssStyle\":\"background: linear-gradient(135deg, #FFDE3B 0%, #FFC933 100%);border-radius: 0.5rem 0rem 0.5rem 0rem;font-size: 0.69rem;color: #252629;line-height: 1rem;left: 0rem;top: 0rem;\",\"label\":\"自营\"},\"title\":{\"firstText\":{\"cssStyle\":\"height:unset;font-weight: bold;font-size: 0.88rem;color: #0F0F0F;margin-top:0rem;padding-top:0.38rem;\",\"label\":\"西域果园每日红枣新疆灰枣精品特级4斤\"}}}],\"headDiv\":{\"moreLink\":{\"iconUrl\":\"\",\"link\":{\"label\":\"更多\",\"type\":\"page\",\"params\":{\"apply_user_id\":\"6565def4fa30444a90379899\",\"indexTab\":\"0\",\"latitude\":\"latitude\",\"cssStyle\":\"margin-right:0.75rem;\",\"longitude\":\"longitude\"},\"target\":\"203846\"},\"linkTitle\":\"\"},\"title\":{\"icon\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1729494659815ca3f5fde02e065a4a9eee3608de2d6b5.png\",\"cssStyle\":\"align-items: center;\",\"iconCssStyle\":\"width:auto;height:1.5rem;margin-right:0;margin-left:0.25rem;\",\"titleBgCssStyle\":\"padding-left: 0;margin-bottom: 0rem;padding-left:1rem;padding-right:1rem;padding-top:1rem;\"}}},\"pageSize\":6,\"pageNo\":1,\"pageTotal\":14,\"signCssStyle\":null,\"loadDataToBottomHint\":null,\"loadDataToBottomHintCssStyle\":\"padding:0rem;\",\"shellDataId\":\"0\"},{\"type\":\"tag\",\"style\":\"tag.AppSimpleDetailTagLogic\",\"name\":\"app-simple-detail-tag\",\"linearLayout\":\"body\",\"data\":{\"visible\":\"false\",\"tips1MainBoxCssStyle\":\"justify-content:unset;position: relative;width: 7.38rem;height: 2.5rem;background: #FFFFFF;box-shadow: 0rem 0.13rem 1rem 0rem rgba(0,0,0,0.1);border-radius: 1.25rem;\",\"type\":\"3\",\"topFirstRowLeftIcon\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_168774871330148ccef20f724914e93321c4fbf53156b.png\",\"buttonLabel\":\"咨询\",\"buttonLabelCssStyle\":\"right: 0rem;font-size: 1rem;font-weight: 400;color: #222222;line-height: 1.38rem;background:unset;\",\"btnLink\":{\"link\":{\"label\":\"\",\"type\":\"chat\",\"params\":{\"chatId\":\"36e095540f9c11eab63a0242ac160002\",\"apply_user_id\":\"6565def4fa30444a90379899\",\"project_id\":\"407\",\"cssStyle\":\"background: linear-gradient(135deg, #FFFBF5 0%, #FFECD1 100%);border-radius: 0.75rem;\",\"nickname\":\"\",\"create_random_event\":\"151575\",\"visitor\":\"visitor\",\"get_msg_event\":\"151577\"},\"target\":\"202911\"}},\"tipsMainBoxCssStyle\":\"right: 1rem;\",\"topFirstRowLabel\":\"咨询\",\"outerBox1CssStyle\":\"width:unset;right:unset;\",\"innerBoxCssStyle\":\"XXX\",\"topFirstRowLeftIconCssStyle\":\"margin-left:1rem;\",\"cssType\":\"40-btn-link\",\"topFirstRowLabelCssStyle\":\"font-size: 1rem;font-weight: 400;color: #222222;line-height: 1.38rem;\"},\"cssStyle\":\"background: linear-gradient(315deg, #FFE015 0%, #FAD119 100%);\",\"shellDataId\":\"0\"},{\"type\":\"tag\",\"style\":\"tag.AppSimpleDetailTagLogic\",\"name\":\"app-simple-detail-tag\",\"linearLayout\":\"body\",\"data\":{\"settingAGSValue\":\"''\",\"settingAGSName\":\"msgSecondTipObj\",\"cssType\":\"28-report-page\"},\"cssStyle\":\"XXX\",\"shellDataId\":\"0\"},{\"type\":\"tag\",\"style\":\"tag.AppSimpleDetailTagLogic\",\"name\":\"app-simple-detail-tag\",\"linearLayout\":\"body\",\"data\":{\"settingAGSValue\":\"''\",\"settingAGSName\":\"msgFirstTipObj\",\"cssType\":\"28-report-page\"},\"cssStyle\":\"XXX\",\"shellDataId\":\"0\"},{\"type\":\"tag\",\"style\":\"tag.AppTabTagLogic\",\"name\":\"ngMobileTabs\",\"linearLayout\":\"body\",\"currentTab\":\"0\",\"isShowLine\":false,\"data\":[{\"badge\":\"0\",\"partLink\":{\"type\":\"view\",\"params\":{\"HomeHeaderBgBoxBgCssStyle\":\"url(https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1720055513015695e52487bd8e2dd4ac87fe589bb243b.png)\",\"outerBoxBgImg\":\"url(https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1720055513015695e52487bd8e2dd4ac87fe589bb243b.png)\",\"share_user\":\"\",\"checkSlideCssStyle\":\"width: 1.63rem;background: #222222;border-radius: 0.13rem;margin-top:0.38rem;margin-bottom:0.13rem;height:0.19rem;\",\"needCheckAndReplaceIndexTab\":\"homeView202407061337index\",\"tabTitleSize\":\"1\",\"hidenTabCssStyle\":\"background:transparent;height: 2.75rem;\",\"outerBoxId\":\"outerBoxId\",\"needChangeBgColor\":\"1\",\"tabLeftBoxCssStyle\":\"background-repeat: no-repeat;background-size: cover;justify-content: space-around;\",\"mainTabBoxCssStyle\":\"height: max-content;\",\"homeSearchPageId\":\"202929\",\"firstRowLeftHintLabel\":\"搜索房产、装修、家政…\",\"test_id\":\"64d05621eef5ca09c1b630f6\",\"headDivInnerBoxCssStyle\":\"0.09rem solid #222222\",\"wy\":\"0\",\"index\":\"0\",\"tabsBackGroundColor\":\"background: transparent;\",\"tabBoxCssStyle\":\"background:#F5F5F5;\",\"settingAGSName\":\"homeView202407061337index\",\"normalSlideCssStyle\":\"background: transparent;margin-top:0.38rem;margin-bottom:0.13rem;height:0.19rem;\",\"checkedTitleCssStyle\":\"color: #252629;font-size: 1rem;font-weight: 800;\",\"secondMainTabCssStyle\":\"position: sticky;top: 0px;position: -webkit-sticky;z-index:999;\",\"hiddenTabCssType\":\"2\",\"enableRefresh\":\"true\",\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"singleBoxCssStyle\":\"justify-content: unset;padding: 0.671rem 0 0;\",\"headDivInnerBoxId\":\"headDivInnerBoxId\",\"normalTitleCssStyle\":\"font-size: 1rem;font-weight: 400;color: #666666;\",\"prerenderingNumber\":\"2\"},\"target\":\"203523\"},\"indexTab\":\"0\",\"cssStyle\":\"\",\"tabType\":\"dafault\",\"label\":\"好货\"},{\"badge\":\"0\",\"partLink\":{\"type\":\"view\",\"params\":{\"HomeHeaderBgBoxBgCssStyle\":\"url(https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_172005559001023eea6ecd2b51dd3b1f17e1665ca0a0e.png)\",\"outerBoxBgImg\":\"url(https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_172005559001023eea6ecd2b51dd3b1f17e1665ca0a0e.png)\",\"share_user\":\"\",\"checkSlideCssStyle\":\"width: 1.63rem;background: #222222;border-radius: 0.13rem;margin-top:0.38rem;margin-bottom:0.13rem;height:0.19rem;\",\"latitude\":\"0\",\"useSelectedPosition\":\"true\",\"needCheckAndReplaceIndexTab\":\"homeView202407061337index\",\"tabTitleSize\":\"1\",\"hidenTabCssStyle\":\"background:transparent;height: 2.75rem;\",\"outerBoxId\":\"outerBoxId\",\"needChangeBgColor\":\"1\",\"tabLeftBoxCssStyle\":\"background-position: 0 -10.375rem;background-repeat: no-repeat;background-size: cover;justify-content: space-around;\",\"mainTabBoxCssStyle\":\"height: max-content;\",\"homeSearchPageId\":\"202929\",\"firstRowLeftHintLabel\":\"搜索房产、装修、家政…\",\"longitude\":\"0\",\"test_id\":\"64d05621eef5ca09c1b630f6\",\"headDivInnerBoxCssStyle\":\"0.09rem solid #222222\",\"wy\":\"0\",\"index\":\"1\",\"tabsBackGroundColor\":\"background: transparent;\",\"tabBoxCssStyle\":\"background:#F5F5F5;\",\"settingAGSName\":\"homeView202407061337index\",\"normalSlideCssStyle\":\"background: transparent;margin-top:0.38rem;margin-bottom:0.13rem;height:0.19rem;\",\"checkedTitleCssStyle\":\"color: #252629;font-size: 1rem;font-weight: 800;\",\"secondMainTabCssStyle\":\"z-index:999;position: sticky;top: 0px;position:-webkit-sticky;z-index:999;\",\"hiddenTabCssType\":\"2\",\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"enableRefresh\":\"true\",\"singleBoxCssStyle\":\"justify-content: unset;padding: 0.671rem 0 0;\",\"headDivInnerBoxId\":\"headDivInnerBoxId\",\"normalTitleCssStyle\":\"font-size: 1rem;font-weight: 400;color: #666666;\",\"prerenderingNumber\":\"2\"},\"target\":\"203754\"},\"indexTab\":\"1\",\"cssStyle\":\"\",\"tabType\":\"dafault\",\"label\":\"店铺\"},{\"badge\":\"0\",\"partLink\":{\"type\":\"view\",\"params\":{\"HomeHeaderBgBoxBgCssStyle\":\"url(https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_172005563365633bf0e41f6c2be679d3fd36e1b739267.png)\",\"outerBoxBgImg\":\"url(https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_172005563365633bf0e41f6c2be679d3fd36e1b739267.png)\",\"share_user\":\"\",\"checkSlideCssStyle\":\"width: 1.63rem;background: #222222;border-radius: 0.13rem;margin-top:0.38rem;margin-bottom:0.13rem;height:0.19rem;\",\"needCheckAndReplaceIndexTab\":\"homeView202407061337index\",\"tabTitleSize\":\"1\",\"hidenTabCssStyle\":\"background:transparent;height: 2.75rem;\",\"outerBoxId\":\"outerBoxId\",\"needChangeBgColor\":\"1\",\"mainTabBoxCssStyle\":\"height: max-content;\",\"homeSearchPageId\":\"202929\",\"firstRowLeftHintLabel\":\"搜索房产、装修、家政…\",\"class_order_id\":\"66a228154e629a4880cc77e7\",\"headDivInnerBoxCssStyle\":\"0.09rem solid #222222\",\"wy\":\"0\",\"index\":\"2\",\"tabsBackGroundColor\":\"background: transparent;\",\"tabBoxCssStyle\":\"background:#F5F5F5;\",\"settingAGSName\":\"homeView202407061337index\",\"normalSlideCssStyle\":\"background: transparent;margin-top:0.38rem;margin-bottom:0.13rem;height:0.19rem;\",\"checkedTitleCssStyle\":\"color: #252629;font-size: 1rem;font-weight: 800;\",\"secondMainTabCssStyle\":\"z-index:999;position: sticky;top: 0px;position: -webkit-sticky;z-index:999;\",\"hiddenTabCssType\":\"2\",\"enableRefresh\":\"true\",\"singleBoxCssStyle\":\"justify-content: unset;padding: 0.671rem 0 0;\",\"headDivInnerBoxId\":\"headDivInnerBoxId\",\"normalTitleCssStyle\":\"font-size: 1rem;font-weight: 400;color: #666666;\",\"prerenderingNumber\":\"2\"},\"target\":\"203504\"},\"indexTab\":\"2\",\"cssStyle\":\"\",\"tabType\":\"dafault\",\"label\":\"服务\"},{\"badge\":\"0\",\"partLink\":{\"type\":\"view\",\"params\":{\"HomeHeaderBgBoxBgCssStyle\":\"url(https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_17200556669373f516ebcf518d2999ca6e3519fcf1302.png)\",\"outerBoxBgImg\":\"url(https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_17200556669373f516ebcf518d2999ca6e3519fcf1302.png)\",\"share_user\":\"\",\"checkSlideCssStyle\":\"width: 1.63rem;background: #222222;border-radius: 0.13rem;margin-top:0.38rem;margin-bottom:0.13rem;height:0.19rem;\",\"needCheckAndReplaceIndexTab\":\"homeView202407061337index\",\"tabTitleSize\":\"1\",\"hidenTabCssStyle\":\"background:transparent;height: 2.75rem;\",\"outerBoxId\":\"outerBoxId\",\"needChangeBgColor\":\"1\",\"mainTabBoxCssStyle\":\"height: max-content;\",\"homeSearchPageId\":\"202929\",\"firstRowLeftHintLabel\":\"搜索房产、装修、家政…\",\"order\":\"\",\"headDivInnerBoxCssStyle\":\"0.09rem solid #222222\",\"wy\":\"0\",\"index\":\"2\",\"tabsBackGroundColor\":\"background: transparent;\",\"tabBoxCssStyle\":\"background: linear-gradient(rgba(255, 255, 255, 1) 11%, rgba(255, 255, 255, 0) 14%);border-radius: 1rem 1rem 0 0;padding-top: 0.75rem;margin-top: 0.3rem;\",\"settingAGSName\":\"homeView202407061337index\",\"normalSlideCssStyle\":\"background: transparent;margin-top:0.38rem;margin-bottom:0.13rem;height:0.19rem;\",\"checkedTitleCssStyle\":\"color: #252629;font-size: 1rem;font-weight: 800;\",\"secondMainTabCssStyle\":\"z-index:999;position: sticky;top: 0px;position: -webkit-sticky;z-index:999;\",\"hiddenTabCssType\":\"2\",\"enableRefresh\":\"true\",\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"singleBoxCssStyle\":\"justify-content: unset;padding: 0.671rem 0 0;\",\"headDivInnerBoxId\":\"headDivInnerBoxId\",\"normalTitleCssStyle\":\"font-size: 1rem;font-weight: 400;color: #666666;\",\"prerenderingNumber\":\"2\"},\"target\":\"203514\"},\"indexTab\":\"3\",\"cssStyle\":\"\",\"tabType\":\"dafault\",\"label\":\"商机\"},{\"badge\":\"0\",\"partLink\":{\"type\":\"view\",\"params\":{\"HomeHeaderBgBoxBgCssStyle\":\"url(https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_17200557033558faac96820f116c6aba1e765fdf1ceeb.png)\",\"outerBoxBgImg\":\"url(https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_17200557033558faac96820f116c6aba1e765fdf1ceeb.png)\",\"share_user\":\"\",\"checkSlideCssStyle\":\"width: 1.63rem;background: #222222;border-radius: 0.13rem;margin-top:0.38rem;margin-bottom:0.13rem;height:0.19rem;\",\"needCheckAndReplaceIndexTab\":\"homeView202407061337index\",\"tabTitleSize\":\"1\",\"hidenTabCssStyle\":\"background:transparent;height: 2.75rem;\",\"outerBoxId\":\"outerBoxId\",\"needChangeBgColor\":\"1\",\"mainTabBoxCssStyle\":\"height: max-content;\",\"homeSearchPageId\":\"202929\",\"firstRowLeftHintLabel\":\"搜索房产、装修、家政…\",\"opp_id3\":\"1111\",\"headDivInnerBoxCssStyle\":\"0.09rem solid #222222\",\"wy\":\"0\",\"opp_id\":\"1111\",\"index\":\"3\",\"tabsBackGroundColor\":\"background: transparent;\",\"tabBoxCssStyle\":\"background:#F5F5F5;\",\"settingAGSName\":\"homeView202407061337index\",\"opp_id2\":\"1111\",\"normalSlideCssStyle\":\"background: transparent;margin-top:0.38rem;margin-bottom:0.13rem;height:0.19rem;\",\"checkedTitleCssStyle\":\"color: #252629;font-size: 1rem;font-weight: 800;\",\"secondMainTabCssStyle\":\"z-index:999;position: sticky;top: 0px;position: -webkit-sticky;z-index:999;\",\"hiddenTabCssType\":\"2\",\"enableRefresh\":\"true\",\"singleBoxCssStyle\":\"justify-content: unset;padding: 0.671rem 0 0;\",\"headDivInnerBoxId\":\"headDivInnerBoxId\",\"normalTitleCssStyle\":\"font-size: 1rem;font-weight: 400;color: #666666;\",\"prerenderingNumber\":\"2\"},\"target\":\"203712\"},\"indexTab\":\"4\",\"cssStyle\":\"\",\"tabType\":\"dafault\",\"label\":\"活动\"}],\"currentData\":{\"type\":\"view\",\"style\":\"view.DefaultViewLogic\",\"name\":null,\"isShell\":false,\"isGrayBg\":false,\"showWaterImg\":false,\"tags\":[{\"type\":\"tag\",\"style\":\"appGeneralmanageFormTag\",\"name\":\"appGeneralFormTag\",\"linearLayout\":\"body\",\"cssStyle\":\"z-index: 2;padding-top: 0rem;height: 7.38rem;background:#F5F5F5F;margin-top:0.5rem;background-position: 0rem 0rem;background-repeat: no-repeat;background-size: cover;background-image: url(https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_170185631077695d73ed9c53ed7f8ff277bfefd55353b.png);background: #FFFFFF;margin-left: 0.75rem;margin-right: 0.75rem;margin-bottom:0.5rem;border-radius: 0.75rem;\",\"data\":{\"isMargin\":false,\"data\":[]},\"pageSize\":5,\"pageNo\":1,\"pageTotal\":0,\"signCssStyle\":\"left:1rem;transform:unset;bottom:0.5rem;\",\"shellDataId\":\"0\"},{\"type\":\"tag\",\"style\":\"tag.AppJobListTagLogic\",\"linearLayout\":\"body\",\"data\":{\"data\":[{\"labelCheckCssStyle\":\"background: linear-gradient(93deg, #FF7E33 0%, #FF3D2B 100%, #FF4D40 100%);               border-radius: 0.56rem;padding: 0.06rem 0.56rem;border-radius: 0.56rem;font-weight: 600;font-size: 0.69rem;color: #FFFFFF;line-height: 0.81rem;text-align: center;\",\"eventParam\":\"high_type\",\"eventValue\":\"0\",\"iconName\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_17008159447194f863d2edcb5a6f90e87ab345ca071d6.png\",\"buttonArrayStyle\":\"buttonArray\",\"link\":{\"type\":\"page\",\"params\":{\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"center_apply_user_id\":\"\",\"level\":\"99\",\"tab_index\":\"0\",\"shop_goods_class_id\":\"6560632ee2cc4941e2574fee\",\"shopName\":\"精选\",\"iconCssStyle\":\"width:3.75rem;height:3.75rem;\",\"goods_class_id\":\"6560632ee2cc4941e2574fee\",\"itemCssStyle\":\"width:unset;margin-right: 0.5rem;padding-bottom: 0.63rem;\"},\"target\":\"203566\"},\"eventName\":\"appCardListTagAskForList\",\"label\":\"精选\",\"selectedJpIcon\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_17300845002726db43159f5dc2a23f9479bfd02e0c93f.png\"},{\"labelCheckCssStyle\":\"background: linear-gradient(93deg, #FF7E33 0%, #FF3D2B 100%, #FF4D40 100%);               border-radius: 0.56rem;padding: 0.06rem 0.56rem;border-radius: 0.56rem;font-weight: 600;font-size: 0.69rem;color: #FFFFFF;line-height: 0.81rem;text-align: center;\",\"eventParam\":\"high_type\",\"eventValue\":\"1\",\"iconName\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_172492089790396a723dffb0f92204f62450f3ba2bc8f.png\",\"buttonArrayStyle\":\"buttonArray\",\"link\":{\"type\":\"page\",\"params\":{\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"center_apply_user_id\":\"\",\"level\":\"98\",\"tab_index\":\"0\",\"shop_goods_class_id\":\"66d6a7f8104a7368f82ed79c\",\"shopName\":\"高品\",\"iconCssStyle\":\"width:3.75rem;height:3.75rem;\",\"goods_class_id\":\"66d6a7f8104a7368f82ed79c\",\"itemCssStyle\":\"width:unset;margin-right: 0.5rem;padding-bottom: 0.63rem;\"},\"target\":\"203566\"},\"eventName\":\"appCardListTagAskForList\",\"label\":\"高品\",\"selectedGpIcon\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_17300845422661c6bd3b7268143cb2f7ae4efad8bc5a0.png\"},{\"iconName\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_17035848294065c156f1f3fab27228b68f6ed178bd290.png\",\"link\":{\"type\":\"page\",\"params\":{\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"center_apply_user_id\":\"\",\"level\":\"1\",\"tab_index\":\"0\",\"shop_goods_class_id\":\"64f6a3e498150d640b9ecf77\",\"shopName\":\"食品\",\"iconCssStyle\":\"width:3.75rem;height:3.75rem;\",\"goods_class_id\":\"64f6a3e498150d640b9ecf77\",\"itemCssStyle\":\"width:unset;margin-right: 0.5rem;padding-bottom: 0.63rem;\"},\"target\":\"203566\"},\"label\":\"食品\"},{\"iconName\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_17032298930481bc34bd0abeec4ed46613df5128a9ff5.png\",\"link\":{\"type\":\"page\",\"params\":{\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"center_apply_user_id\":\"\",\"level\":\"1\",\"tab_index\":\"0\",\"shop_goods_class_id\":\"64f6a41298150d640b9ed033\",\"shopName\":\"日用品\",\"iconCssStyle\":\"width:3.75rem;height:3.75rem;\",\"goods_class_id\":\"64f6a41298150d640b9ed033\",\"itemCssStyle\":\"width:unset;margin-right: 0.5rem;padding-bottom: 0.63rem;\"},\"target\":\"203566\"},\"label\":\"日用品\"},{\"iconName\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1703229906279cdb4eae83f790b821fe51dfea7a123f3.png\",\"link\":{\"type\":\"page\",\"params\":{\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"center_apply_user_id\":\"\",\"level\":\"1\",\"tab_index\":\"0\",\"shop_goods_class_id\":\"64f6a3f898150d640b9ecfd1\",\"shopName\":\"美妆护肤\",\"iconCssStyle\":\"width:3.75rem;height:3.75rem;\",\"goods_class_id\":\"64f6a3f898150d640b9ecfd1\",\"itemCssStyle\":\"width:unset;margin-right: 0.5rem;padding-bottom: 0.63rem;\"},\"target\":\"203566\"},\"label\":\"美妆护肤\"},{\"iconName\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_17032299177255fa24647e560d57b6a056b90965311ce.png\",\"link\":{\"type\":\"page\",\"params\":{\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"center_apply_user_id\":\"\",\"level\":\"1\",\"tab_index\":\"0\",\"shop_goods_class_id\":\"64f6a40098150d640b9ecff3\",\"shopName\":\"个人护理\",\"iconCssStyle\":\"width:3.75rem;height:3.75rem;\",\"goods_class_id\":\"64f6a40098150d640b9ecff3\",\"itemCssStyle\":\"width:unset;margin-right: 0.5rem;padding-bottom: 0.63rem;\"},\"target\":\"203566\"},\"label\":\"个人护理\"},{\"iconName\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1703229929862e58d6772db5fdacfc07a2a4da7fd3a34.png\",\"link\":{\"type\":\"page\",\"params\":{\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"center_apply_user_id\":\"\",\"level\":\"1\",\"tab_index\":\"0\",\"shop_goods_class_id\":\"64f6a40a98150d640b9ed010\",\"shopName\":\"母婴用品\",\"iconCssStyle\":\"width:3.75rem;height:3.75rem;\",\"goods_class_id\":\"64f6a40a98150d640b9ed010\",\"itemCssStyle\":\"width:unset;margin-right: 0.5rem;padding-bottom: 0.63rem;\"},\"target\":\"203566\"},\"label\":\"母婴用品\"},{\"iconName\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1703229966810261d8d86aa5cfa1a8acd69b5aa2ab10a.png\",\"link\":{\"type\":\"page\",\"params\":{\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"center_apply_user_id\":\"\",\"level\":\"1\",\"tab_index\":\"0\",\"shop_goods_class_id\":\"64f6a41b98150d640b9ed058\",\"shopName\":\"家居电器\",\"iconCssStyle\":\"width:3.75rem;height:3.75rem;\",\"goods_class_id\":\"64f6a41b98150d640b9ed058\",\"itemCssStyle\":\"width:unset;margin-right: 0.5rem;padding-bottom: 0.63rem;\"},\"target\":\"203566\"},\"label\":\"家居电器\"},{\"iconName\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_170322998005354aa5f72afe76878fd07db56fa4e0332.png\",\"link\":{\"type\":\"page\",\"params\":{\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"center_apply_user_id\":\"\",\"level\":\"1\",\"tab_index\":\"0\",\"shop_goods_class_id\":\"64f6a42f98150d640b9ed0f4\",\"shopName\":\"手机数码\",\"iconCssStyle\":\"width:3.75rem;height:3.75rem;\",\"goods_class_id\":\"64f6a42f98150d640b9ed0f4\",\"itemCssStyle\":\"width:unset;margin-right: 0.5rem;padding-bottom: 0.63rem;\"},\"target\":\"203566\"},\"label\":\"手机数码\"},{\"iconName\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_17032299919430c62e060c790cdcbeef18693827a2767.png\",\"link\":{\"type\":\"page\",\"params\":{\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"center_apply_user_id\":\"\",\"level\":\"1\",\"tab_index\":\"0\",\"shop_goods_class_id\":\"64f6a44498150d640b9ed148\",\"shopName\":\"时尚箱包\",\"iconCssStyle\":\"width:3.75rem;height:3.75rem;\",\"goods_class_id\":\"64f6a44498150d640b9ed148\",\"itemCssStyle\":\"width:unset;margin-right: 0.5rem;padding-bottom: 0.63rem;\"},\"target\":\"203566\"},\"label\":\"时尚箱包\"},{\"iconName\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1703230008882c0a1303a9e7fa427f6f7932fedfadcaa.png\",\"link\":{\"type\":\"page\",\"params\":{\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"center_apply_user_id\":\"\",\"level\":\"1\",\"tab_index\":\"0\",\"shop_goods_class_id\":\"64f6a43f98150d640b9ed130\",\"shopName\":\"宠物生活\",\"iconCssStyle\":\"width:3.75rem;height:3.75rem;\",\"goods_class_id\":\"64f6a43f98150d640b9ed130\",\"itemCssStyle\":\"width:unset;margin-right: 0.5rem;padding-bottom: 0.63rem;\"},\"target\":\"203566\"},\"label\":\"宠物生活\"},{\"iconName\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_17035848454026178561f8badf9816c694b2d4fc9ba57.png\",\"link\":{\"type\":\"page\",\"params\":{\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"center_apply_user_id\":\"\",\"level\":\"1\",\"tab_index\":\"0\",\"shop_goods_class_id\":\"657a9ee9b1b4db0b82a100ed\",\"shopName\":\"服饰\",\"iconCssStyle\":\"width:3.75rem;height:3.75rem;\",\"goods_class_id\":\"657a9ee9b1b4db0b82a100ed\",\"itemCssStyle\":\"width:unset;margin-right: 0.5rem;padding-bottom: 0.63rem;\"},\"target\":\"203566\"},\"label\":\"服饰\"},{\"iconName\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1703230037682fe481670b5b1f0901ecc06e4fc88fc71.png\",\"link\":{\"type\":\"page\",\"params\":{\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"center_apply_user_id\":\"\",\"level\":\"1\",\"tab_index\":\"0\",\"shop_goods_class_id\":\"64f6a3f798150d640b9ecfca\",\"shopName\":\"营养保健\",\"iconCssStyle\":\"width:3.75rem;height:3.75rem;\",\"goods_class_id\":\"64f6a3f798150d640b9ecfca\",\"itemCssStyle\":\"width:unset;margin-right: 0.5rem;padding-bottom: 0.63rem;\"},\"target\":\"203566\"},\"label\":\"营养保健\"},{\"iconName\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1703230292102b751cd765e623379a2504a4681370195.png\",\"link\":{\"type\":\"page\",\"params\":{\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"center_apply_user_id\":\"\",\"level\":\"1\",\"tab_index\":\"0\",\"shop_goods_class_id\":\"65853b577fbc3637ca3f2a7a\",\"shopName\":\"鞋帽\",\"iconCssStyle\":\"width:3.75rem;height:3.75rem;\",\"goods_class_id\":\"65853b577fbc3637ca3f2a7a\",\"itemCssStyle\":\"width:unset;margin-right: 0.5rem;padding-bottom: 0.63rem;\"},\"target\":\"203566\"},\"label\":\"鞋帽\"},{\"iconName\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1703230075979e81084d6465c184dec1bee10c3d1039f.png\",\"link\":{\"type\":\"page\",\"params\":{\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"center_apply_user_id\":\"\",\"level\":\"1\",\"tab_index\":\"0\",\"shop_goods_class_id\":\"64f6a46b98150d640b9ed1f3\",\"shopName\":\"运动户外\",\"iconCssStyle\":\"width:3.75rem;height:3.75rem;\",\"goods_class_id\":\"64f6a46b98150d640b9ed1f3\",\"itemCssStyle\":\"width:unset;margin-right: 0.5rem;padding-bottom: 0.63rem;\"},\"target\":\"203566\"},\"label\":\"运动户外\"},{\"iconName\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1703230051188a7ddc0631c4b3b50dffca7d000a4983e.png\",\"link\":{\"type\":\"page\",\"params\":{\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"center_apply_user_id\":\"\",\"level\":\"1\",\"tab_index\":\"0\",\"shop_goods_class_id\":\"64f6a44798150d640b9ed155\",\"shopName\":\"首饰钟表\",\"iconCssStyle\":\"width:3.75rem;height:3.75rem;\",\"goods_class_id\":\"64f6a44798150d640b9ed155\",\"itemCssStyle\":\"width:unset;margin-right: 0.5rem;padding-bottom: 0.63rem;\"},\"target\":\"203566\"},\"label\":\"首饰钟表\"},{\"iconName\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_17032300238857c3f1cb9be7246d5f9402bba05c7d7fc.png\",\"link\":{\"type\":\"page\",\"params\":{\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"center_apply_user_id\":\"\",\"level\":\"1\",\"tab_index\":\"0\",\"shop_goods_class_id\":\"64f6a44f98150d640b9ed17a\",\"shopName\":\"文具办公\",\"iconCssStyle\":\"width:3.75rem;height:3.75rem;\",\"goods_class_id\":\"64f6a44f98150d640b9ed17a\",\"itemCssStyle\":\"width:unset;margin-right: 0.5rem;padding-bottom: 0.63rem;\"},\"target\":\"203566\"},\"label\":\"文具办公\"},{\"iconName\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_17032300974448d7796964b2fac0a93818d825d699770.png\",\"link\":{\"type\":\"page\",\"params\":{\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"center_apply_user_id\":\"\",\"level\":\"1\",\"tab_index\":\"0\",\"shop_goods_class_id\":\"64f6a47d98150d640b9ed28c\",\"shopName\":\"汽车用品\",\"iconCssStyle\":\"width:3.75rem;height:3.75rem;\",\"goods_class_id\":\"64f6a47d98150d640b9ed28c\",\"itemCssStyle\":\"width:unset;margin-right: 0.5rem;padding-bottom: 0.63rem;\"},\"target\":\"203566\"},\"label\":\"汽车用品\"},{\"iconName\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_17032301078220a7247d232e0e60d01f9187a75af7c4f.png\",\"link\":{\"type\":\"page\",\"params\":{\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"center_apply_user_id\":\"\",\"level\":\"1\",\"tab_index\":\"0\",\"shop_goods_class_id\":\"64f6a47798150d640b9ed221\",\"shopName\":\"建材五金\",\"iconCssStyle\":\"width:3.75rem;height:3.75rem;\",\"goods_class_id\":\"64f6a47798150d640b9ed221\",\"itemCssStyle\":\"width:unset;margin-right: 0.5rem;padding-bottom: 0.63rem;\"},\"target\":\"203566\"},\"label\":\"建材五金\"},{\"iconName\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1703230118484fe2663bee10647c5f7f8c7df040f3cbd.png\",\"link\":{\"type\":\"page\",\"params\":{\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"center_apply_user_id\":\"\",\"level\":\"1\",\"tab_index\":\"0\",\"shop_goods_class_id\":\"64f6a46298150d640b9ed1cd\",\"shopName\":\"文教图书\",\"iconCssStyle\":\"width:3.75rem;height:3.75rem;\",\"goods_class_id\":\"64f6a46298150d640b9ed1cd\",\"itemCssStyle\":\"width:unset;margin-right: 0.5rem;padding-bottom: 0.63rem;\"},\"target\":\"203566\"},\"label\":\"文教图书\"},{\"iconName\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_17032301331123ea7c547af1930801963d34a24259e01.png\",\"link\":{\"type\":\"page\",\"params\":{\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"center_apply_user_id\":\"\",\"level\":\"1\",\"tab_index\":\"0\",\"shop_goods_class_id\":\"657a9ee7b1b4db0b82a100cb\",\"shopName\":\"农业渔业\",\"iconCssStyle\":\"width:3.75rem;height:3.75rem;\",\"goods_class_id\":\"657a9ee7b1b4db0b82a100cb\",\"itemCssStyle\":\"width:unset;margin-right: 0.5rem;padding-bottom: 0.63rem;\"},\"target\":\"203566\"},\"label\":\"农业渔业\"}],\"link\":{\"param\":{\"toolsBoxCssStyle\":\"white-space: nowrap;overflow-y: scroll;padding-left: 0.75rem;padding-right: 0.75rem;\",\"tableRowCssStyle\":\"display: flex;flex-wrap: nowrap;width: max-content;\",\"titleBoxCssStyle\":\"display:none;\",\"layoutType\":\"twoRow\"},\"label\":\"\",\"type\":\"disable\",\"params\":{\"toolsBoxCssStyle\":\"white-space: nowrap;overflow-y: scroll;padding-left: 0.75rem;padding-right: 0.75rem;\",\"tableRowCssStyle\":\"display: flex;flex-wrap: nowrap;width: max-content;\",\"titleBoxCssStyle\":\"display:none;\",\"layoutType\":\"twoRow\"},\"target\":\"202911\"},\"style\":\"1\",\"title\":\" \"},\"cssStyle\":\"height: unset;margin: unset;padding: unset;margin-top: 0.25rem;background: linear-gradient( 180deg, #FFFFFF 0%, rgba(255,255,255,0) 100%);border-radius: 1rem 1rem 0rem 0rem;padding-top: 0.75rem;margin-bottom: 0.59rem;\",\"shellDataId\":\"0\"},{\"type\":\"tag\",\"style\":\"appCardListTag\",\"name\":\"appCardListTag\",\"linearLayout\":\"body\",\"cssStyle\":\"background:#F5F5F5;padding-top:unset;\",\"data\":{\"isMargin\":false,\"submit\":{\"content\":{\"hidenTabCssStyle\":\"background:transparent;height: 2.75rem;\",\"index\":\"0\",\"outerBoxBgImg\":\"url(https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1720055513015695e52487bd8e2dd4ac87fe589bb243b.png)\",\"oldIndex\":-1,\"secondMainTabCssStyle\":\"position: sticky;top: 0px;position: -webkit-sticky;z-index:999;\",\"recommendTab\":\"0\",\"test_id\":\"64d05621eef5ca09c1b630f6\",\"checkSlideCssStyle\":\"width: 1.63rem;background: #222222;border-radius: 0.13rem;margin-top:0.38rem;margin-bottom:0.13rem;height:0.19rem;\",\"code\":\"4403\",\"needCheckAndReplaceIndexTab\":\"homeView202407061337index\",\"data_hash_key\":\"new\",\"HomeHeaderBgBoxBgCssStyle\":\"url(https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1720055513015695e52487bd8e2dd4ac87fe589bb243b.png)\",\"wy\":\"0\",\"opp_id\":\"1111\",\"needChangeBgColor\":\"1\",\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"settingAGSName\":\"homeView202407061337index\",\"tabsBackGroundColor\":\"background: transparent;\",\"normalTitleCssStyle\":\"font-size: 1rem;font-weight: 400;color: #666666;\",\"normalSlideCssStyle\":\"background: transparent;margin-top:0.38rem;margin-bottom:0.13rem;height:0.19rem;\",\"homeSearchPageId\":\"202929\",\"opp_id2\":\"\",\"prerenderingNumber\":\"2\",\"headDivInnerBoxId\":\"headDivInnerBoxId\",\"tabTitleSize\":\"1\",\"tabLeftBoxCssStyle\":\"background-position: 0 -6.75rem;background-repeat: no-repeat;background-size: cover;justify-content: space-around;\",\"hiddenTabCssType\":\"2\",\"opp_id3\":\"1111\",\"mainTabBoxCssStyle\":\"height: max-content;\",\"enableRefresh\":\"true\",\"share_user\":\"\",\"headDivInnerBoxCssStyle\":\"0.09rem solid #222222\",\"outerBoxId\":\"outerBoxId\",\"tabBoxCssStyle\":\"background:#F5F5F5;\",\"singleBoxCssStyle\":\"justify-content: unset;padding: 0.671rem 0 0;\",\"indexTab\":\"0\",\"checkedTitleCssStyle\":\"color: #252629;font-size: 1rem;font-weight: 800;\",\"firstRowLeftHintLabel\":\"搜索房产、装修、家政…\",\"pageNo\":1},\"id\":\"db922e8e-4435-4c50-bb66-4c3ebe6106a3\"},\"data\":[{\"img_v\":{\"imgUrl\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_17298721990077c02af52ffc6e2d024b6741f6354e316.jpg\",\"cssStyle\":\"background: #F5F6F7;border-radius: 0.38rem;\"},\"isMacy\":\"1\",\"thirdRowLeft\":{\"firstText\":{\"cssStyle\":\"xxx\",\"label\":\"￥\"},\"secondText\":{\"price\":\"660.00\",\"cssStyle\":\"xxx\"}},\"link\":{\"type\":\"page\",\"params\":{\"latitude\":\"latitude\",\"calculateDistrictCode\":\"1\",\"shop_goods_id\":\"671bc42686940a7b51c22b9b\",\"longitude\":\"longitude\"},\"target\":\"203452\"},\"imgTag\":{\"cssStyle\":\"background: linear-gradient(135deg, #FFDE3B 0%, #FFC933 100%);border-radius: 0.5rem 0rem 0.5rem 0rem;font-size: 0.69rem;color: #252629;line-height: 1rem;left: 0rem;top: 0rem;\",\"label\":\"自营\"},\"title\":{\"firstText\":{\"cssStyle\":\"height:unset;padding-top:0.5rem;margin-top:0rem;\",\"label\":\"藏红花焕肤喷雾\"}},\"content\":{\"cssStyle\":\"border: none;\"},\"isShowRefresher\":\"true\"},{\"img_v\":{\"imgUrl\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1729828933872f787927e909f574898c5b7e8a0f673b0.jpg\",\"cssStyle\":\"background: #F5F6F7;border-radius: 0.38rem;\"},\"isMacy\":\"1\",\"thirdRowLeft\":{\"firstText\":{\"cssStyle\":\"xxx\",\"label\":\"￥\"},\"secondText\":{\"price\":\"99.00\",\"cssStyle\":\"xxx\"}},\"link\":{\"type\":\"page\",\"params\":{\"latitude\":\"latitude\",\"calculateDistrictCode\":\"1\",\"shop_goods_id\":\"671b1be40ba3d27d41bf52f0\",\"longitude\":\"longitude\"},\"target\":\"203452\"},\"imgTag\":{\"cssStyle\":\"background: linear-gradient(135deg, #FFDE3B 0%, #FFC933 100%);border-radius: 0.5rem 0rem 0.5rem 0rem;font-size: 0.69rem;color: #252629;line-height: 1rem;left: 0rem;top: 0rem;\",\"label\":\"自营\"},\"title\":{\"firstText\":{\"cssStyle\":\"height:unset;padding-top:0.5rem;margin-top:0rem;\",\"label\":\"雷火酊经络代灸保健液30ml1瓶\"}},\"content\":{\"cssStyle\":\"border: none;\"},\"isShowRefresher\":\"true\"},{\"img_v\":{\"imgUrl\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_17302575207447a6889762016cd856f8b6bd37fddcfd9.jpg\",\"cssStyle\":\"background: #F5F6F7;border-radius: 0.38rem;\"},\"isMacy\":\"1\",\"thirdRowLeft\":{\"firstText\":{\"cssStyle\":\"xxx\",\"label\":\"￥\"},\"secondText\":{\"price\":\"59.90\",\"cssStyle\":\"xxx\"}},\"link\":{\"type\":\"page\",\"params\":{\"latitude\":\"latitude\",\"calculateDistrictCode\":\"1\",\"shop_goods_id\":\"6721a2a1d00c2c5f6c703813\",\"longitude\":\"longitude\"},\"target\":\"203452\"},\"imgTag\":{\"cssStyle\":\"background: linear-gradient(135deg, #FFDE3B 0%, #FFC933 100%);border-radius: 0.5rem 0rem 0.5rem 0rem;font-size: 0.69rem;color: #252629;line-height: 1rem;left: 0rem;top: 0rem;\",\"label\":\"自营\"},\"title\":{\"firstText\":{\"cssStyle\":\"height:unset;padding-top:0.5rem;margin-top:0rem;\",\"label\":\"瑞康乳业PET巧克力牛奶210g*8瓶/箱\"}},\"content\":{\"cssStyle\":\"border: none;\"},\"isShowRefresher\":\"true\"},{\"img_v\":{\"imgUrl\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_17300952930646774d6916e66cc3f425491bdf008255c.jpg\",\"cssStyle\":\"background: #F5F6F7;border-radius: 0.38rem;\"},\"isMacy\":\"1\",\"thirdRowLeft\":{\"firstText\":{\"cssStyle\":\"xxx\",\"label\":\"￥\"},\"secondText\":{\"price\":\"79.00\",\"cssStyle\":\"xxx\"}},\"link\":{\"type\":\"page\",\"params\":{\"latitude\":\"latitude\",\"calculateDistrictCode\":\"1\",\"shop_goods_id\":\"671f2b1b709d416bdad37bab\",\"longitude\":\"longitude\"},\"target\":\"203452\"},\"imgTag\":{\"cssStyle\":\"background: linear-gradient(135deg, #FFDE3B 0%, #FFC933 100%);border-radius: 0.5rem 0rem 0.5rem 0rem;font-size: 0.69rem;color: #252629;line-height: 1rem;left: 0rem;top: 0rem;\",\"label\":\"自营\"},\"title\":{\"firstText\":{\"cssStyle\":\"height:unset;padding-top:0.5rem;margin-top:0rem;\",\"label\":\"瑞康羊奶pet鲜羊奶200g*8瓶/箱\"}},\"content\":{\"cssStyle\":\"border: none;\"},\"isShowRefresher\":\"true\"},{\"img_v\":{\"imgUrl\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1729578208062bbb5c9c9704cb5a53dea94b1a7205b5b.jpg\",\"cssStyle\":\"background: #F5F6F7;border-radius: 0.38rem;\"},\"isMacy\":\"1\",\"thirdRowLeft\":{\"firstText\":{\"cssStyle\":\"xxx\",\"label\":\"￥\"},\"secondText\":{\"price\":\"96.00\",\"cssStyle\":\"xxx\"}},\"link\":{\"type\":\"page\",\"params\":{\"latitude\":\"latitude\",\"calculateDistrictCode\":\"1\",\"shop_goods_id\":\"671749e3992b0034dd8692d1\",\"longitude\":\"longitude\"},\"target\":\"203452\"},\"imgTag\":{\"cssStyle\":\"background: linear-gradient(135deg, #FFDE3B 0%, #FFC933 100%);border-radius: 0.5rem 0rem 0.5rem 0rem;font-size: 0.69rem;color: #252629;line-height: 1rem;left: 0rem;top: 0rem;\",\"label\":\"自营\"},\"title\":{\"firstText\":{\"cssStyle\":\"height:unset;padding-top:0.5rem;margin-top:0rem;\",\"label\":\"栖霞有机条纹红富士苹果10斤一级中果24个左右一箱\"}},\"content\":{\"cssStyle\":\"border: none;\"},\"isShowRefresher\":\"true\"},{\"img_v\":{\"imgUrl\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1728993847223cb5987b6fe9105c5684cfc9fbeaa1224.jpg\",\"cssStyle\":\"background: #F5F6F7;border-radius: 0.38rem;\"},\"isMacy\":\"1\",\"thirdRowLeft\":{\"firstText\":{\"cssStyle\":\"xxx\",\"label\":\"￥\"},\"secondText\":{\"price\":\"213.00\",\"cssStyle\":\"xxx\"}},\"link\":{\"type\":\"page\",\"params\":{\"latitude\":\"latitude\",\"calculateDistrictCode\":\"1\",\"shop_goods_id\":\"670aa83d8207252c84e4f56e\",\"longitude\":\"longitude\"},\"target\":\"203452\"},\"imgTag\":{\"cssStyle\":\"background: linear-gradient(135deg, #FFDE3B 0%, #FFC933 100%);border-radius: 0.5rem 0rem 0.5rem 0rem;font-size: 0.69rem;color: #252629;line-height: 1rem;left: 0rem;top: 0rem;\",\"label\":\"自营\"},\"title\":{\"firstText\":{\"cssStyle\":\"height:unset;padding-top:0.5rem;margin-top:0rem;\",\"label\":\"杜康国花红瓷浓香型50度500ml*1瓶\"}},\"content\":{\"cssStyle\":\"border: none;\"},\"isShowRefresher\":\"true\"},{\"img_v\":{\"imgUrl\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_172939035703973b276b0bda75c5d28c8a99abcb22f71.jpg\",\"cssStyle\":\"background: #F5F6F7;border-radius: 0.38rem;\"},\"isMacy\":\"1\",\"thirdRowLeft\":{\"firstText\":{\"cssStyle\":\"xxx\",\"label\":\"￥\"},\"secondText\":{\"price\":\"108.00\",\"cssStyle\":\"xxx\"}},\"link\":{\"type\":\"page\",\"params\":{\"latitude\":\"latitude\",\"calculateDistrictCode\":\"1\",\"shop_goods_id\":\"67146de60cbd612d0d33c3c6\",\"longitude\":\"longitude\"},\"target\":\"203452\"},\"imgTag\":{\"cssStyle\":\"background: linear-gradient(135deg, #FFDE3B 0%, #FFC933 100%);border-radius: 0.5rem 0rem 0.5rem 0rem;font-size: 0.69rem;color: #252629;line-height: 1rem;left: 0rem;top: 0rem;\",\"label\":\"自营\"},\"title\":{\"firstText\":{\"cssStyle\":\"height:unset;padding-top:0.5rem;margin-top:0rem;\",\"label\":\"玉桂纯中药材床枕一个装\"}},\"content\":{\"cssStyle\":\"border: none;\"},\"isShowRefresher\":\"true\"},{\"img_v\":{\"imgUrl\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1729392456478baf490e6f3d2462adf26e8ee0f0784c9.jpg\",\"cssStyle\":\"background: #F5F6F7;border-radius: 0.38rem;\"},\"isMacy\":\"1\",\"thirdRowLeft\":{\"firstText\":{\"cssStyle\":\"xxx\",\"label\":\"￥\"},\"secondText\":{\"price\":\"48.00\",\"cssStyle\":\"xxx\"}},\"link\":{\"type\":\"page\",\"params\":{\"latitude\":\"latitude\",\"calculateDistrictCode\":\"1\",\"shop_goods_id\":\"671473160cbd612d0d33c676\",\"longitude\":\"longitude\"},\"target\":\"203452\"},\"imgTag\":{\"cssStyle\":\"background: linear-gradient(135deg, #FFDE3B 0%, #FFC933 100%);border-radius: 0.5rem 0rem 0.5rem 0rem;font-size: 0.69rem;color: #252629;line-height: 1rem;left: 0rem;top: 0rem;\",\"label\":\"自营\"},\"title\":{\"firstText\":{\"cssStyle\":\"height:unset;padding-top:0.5rem;margin-top:0rem;\",\"label\":\"粤尚佳外海面1.3KG全蛋面22-24小袋\"}},\"content\":{\"cssStyle\":\"border: none;\"},\"isShowRefresher\":\"true\"},{\"img_v\":{\"imgUrl\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1727356862710f2b94ab8bd7f8c6d6e7396b7eb57c6da.jpg\",\"cssStyle\":\"background: #F5F6F7;border-radius: 0.38rem;\"},\"isMacy\":\"1\",\"thirdRowLeft\":{\"firstText\":{\"cssStyle\":\"xxx\",\"label\":\"￥\"},\"secondText\":{\"price\":\"518.00\",\"cssStyle\":\"xxx\"}},\"link\":{\"type\":\"page\",\"params\":{\"latitude\":\"latitude\",\"calculateDistrictCode\":\"1\",\"shop_goods_id\":\"66f56c2d589a8c0797db2102\",\"longitude\":\"longitude\"},\"target\":\"203452\"},\"imgTag\":{\"cssStyle\":\"background: linear-gradient(135deg, #FFDE3B 0%, #FFC933 100%);border-radius: 0.5rem 0rem 0.5rem 0rem;font-size: 0.69rem;color: #252629;line-height: 1rem;left: 0rem;top: 0rem;\",\"label\":\"自营\"},\"title\":{\"firstText\":{\"cssStyle\":\"height:unset;padding-top:0.5rem;margin-top:0rem;\",\"label\":\"吾乐美焕活（赋活）凝胶1瓶\"}},\"content\":{\"cssStyle\":\"border: none;\"},\"isShowRefresher\":\"true\"},{\"img_v\":{\"imgUrl\":\"https://oss-hxq-prod.szbaoly.com/bjsc/goods/a042e7e5-6985-47b4-8954-798087037261.jpg\",\"cssStyle\":\"background: #F5F6F7;border-radius: 0.38rem;\"},\"isMacy\":\"1\",\"thirdRowLeft\":{\"firstText\":{\"cssStyle\":\"xxx\",\"label\":\"￥\"},\"secondText\":{\"price\":\"22.90\",\"cssStyle\":\"xxx\"}},\"link\":{\"type\":\"page\",\"params\":{\"latitude\":\"latitude\",\"calculateDistrictCode\":\"1\",\"shop_goods_id\":\"65ba37e782f61d5c654a3688\",\"longitude\":\"longitude\"},\"target\":\"203452\"},\"imgTag\":{\"cssStyle\":\"background: linear-gradient(135deg, #FFDE3B 0%, #FFC933 100%);border-radius: 0.5rem 0rem 0.5rem 0rem;font-size: 0.69rem;color: #252629;line-height: 1rem;left: 0rem;top: 0rem;\",\"label\":\"自营\"},\"title\":{\"firstText\":{\"cssStyle\":\"height:unset;padding-top:0.5rem;margin-top:0rem;\",\"label\":\"妙味哥长沙老卤粉正宗劲道双口味老卤粉195克\"}},\"content\":{\"cssStyle\":\"border: none;\"},\"isShowRefresher\":\"true\"}]},\"pageSize\":10,\"pageNo\":1,\"pageTotal\":23304,\"refreshId\":\"appCardListTag2\",\"shellDataId\":\"0\"}],\"titleBar\":{}},\"cssType\":6,\"scroll\":true,\"cssStyle\":\"padding: unset;color: #666666;\",\"shellDataId\":\"0\"},{\"type\":\"tag\",\"style\":\"tag.AppSimpleDetailTagLogic\",\"name\":\"app-simple-detail-tag\",\"linearLayout\":\"body\",\"data\":{\"chatCustomBtn\":{\"link\":{\"label\":\"\",\"type\":\"pageModal\",\"params\":{\"modalCss\":\"bottom\"},\"target\":\"203780\"}},\"cssType\":\"28-report-page\"},\"shellDataId\":\"0\"}],\"titleBar\":{\"closeToExitApp\":false,\"searchInput\":{\"layout\":\"bottom-center\",\"goTo\":\"-1\",\"searchType\":\"1\",\"link\":{\"type\":\"page\",\"params\":{\"shop_goods*shop_goods_goods_name\":\"\",\"key\":{\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"hostPadding\":\"1\",\"bottomSearchBox2CssStyle\":\"display: flex;align-items: center;height:0rem;margin-bottom: 0rem;\"}},\"target\":\"203555\"},\"cssWidth\":\"2.25rem\",\"placeholder\":\"商品名称\",\"value\":\"\"},\"searchButton\":{\"layout\":\"right\",\"goTo\":\"1\",\"searchType\":\"8\",\"icon\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1678430985163f14eff927268a99dcb77f72d30a8a13a.png\",\"link\":{\"type\":\"page\",\"params\":{\"shop_goods*shop_goods_goods_name\":\"\",\"shop_goods*shop_goods_search_text\":\"\",\"shop_goods*shop_goods_search_ik_text\":\"\",\"key\":{\"searchIcon\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1678430985163f14eff927268a99dcb77f72d30a8a13a.png\",\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"buttonCssStyle\":\"display:none;\",\"bottomSearchBox2CssStyle\":\"XXX\"}},\"target\":\"203555\"},\"placeholder\":\"输入想要的好货\",\"position\":\"bottom\"},\"iconButton\":[{\"layout\":\"right\",\"icon\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1676272720171b9beae2b32c187ab45b461c9c9ed5cd1.png\",\"cssStyle\":\"margin-right:-1.25rem;width: 3.75rem;color:#000;\",\"link\":{\"type\":\"pageModal\",\"params\":{\"viewId\":\"203546\",\"base_info_id\":\"64d05621eef5ca09c1b630f6\",\"share_user\":\"6167e5b9a82423502f1df5ae\",\"modalCss\":\"bottom\",\"pageid\":\"3041\"},\"target\":\"203532\"},\"action\":\"share\"}],\"isScript\":false,\"link\":{\"link\":{\"label\":\"测试连接\",\"type\":\"page\",\"params\":{\"headDivInnerBoxCssStyle\":\"display:none;height:0rem;background: #FFFFFF;border-radius: 1.13rem;border: 0.09rem solid #222222;\",\"firstRowLeftLabelCssStyle\":\"display:none;\",\"middleLineCssStyle\":\"display:none;\",\"headDivBoxCssStyle\":\"display:none;background:transparent;height:0rem;margin-bottom:0rem;\",\"firstRowSecondIcon\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_16781702578523be02b3eccf2b0afb47a530aafd0fb7d.png\",\"firstRowIcon\":\"https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1676874263937b0e1ec64c053f9a5b61b1064e88825ad.png\",\"firstRowLeftHintLabel\":\"搜索房产、装修、家政…\",\"firstRowIconCssStyle\":\"XXX\",\"bottomSearchBox2CssStyle\":\"height:0rem;margin-bottom:0rem;\",\"firstRowLeftHintLabelCssStyle\":\"font-size: 0.88rem;font-weight: 400;color: #999999;width: 14.5rem;\"},\"target\":\"house_service_area_page\"}},\"isShell\":false,\"cssStyle\":\"--background:transparent;padding-top:env(safe-area-inset-top);\",\"title\":{\"cssStyle\":\"white-space: break-spaces;overflow: hidden;-webkit-line-clamp: 1;-webkit-box-orient: vertical;display: contents;\",\"link\":{\"label\":\"\",\"type\":\"page\",\"params\":{\"share_type\":\"0\",\"my_shop_info_setting_id\":\"66a20613430c190f12a7dd4d\"},\"target\":\"203795\"},\"labelName\":\"勇哥商城\"},\"bottomLine\":false,\"headerStyle\":\"backdrop-filter:unset;z-index: 10001;background: url(https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1678172771079f75e38e646385b4067292062be73c160.png)no-repeat 0 0/cover;background-position: bottom center;background-size: 100% 100%;background-color: #f5f5f5;\",\"isHideTitle\":false,\"hasPop\":\"true\",\"backRefresh\":false,\"fullscreen\":false,\"isDisabled\":false,\"position\":{\"layout\":\"left\",\"code\":\"4403\",\"isScript\":false,\"link\":{\"param\":[{\"value\":\"margin-right: 2rem;\",\"isScript\":false,\"isDisabled\":false,\"name\":\"cssStyle\",\"isShell\":false}],\"type\":\"modal\",\"target\":\"202747\",\"isAppendUrl\":true,\"needFrontPageParam\":false,\"sonLink\":\"false\",\"isScript\":false,\"isDisabled\":false,\"isShell\":false},\"name\":\"深圳\"},\"bgImgStyle\":\"background:transparent;padding-top:env(safe-area-inset-top);\"}}",
      projectId: null,
      message: null,
      code: null
    }
  }
}